Plugin Directory

Changeset 1405481


Ignore:
Timestamp:
04/27/2016 11:39:07 AM (10 years ago)
Author:
adamnutickets
Message:

1.0.4 Better support for iframe resize when current company's box office is connected to another Nutickets box office

Location:
nutickets-events/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • nutickets-events/trunk/nutickets-events.php

    r1366772 r1405481  
    55Description: The Nutickets Events Plugin allows Nutickets' clients to embed their ticketshop and other Nutickets enabled pages to their website seamlessly.
    66Author: Nuweb Systems Ltd.
    7 Version: 1.0.3
     7Version: 1.0.4
    88Author URI: http://nutickets.com
    99License: GPL2
     
    190190        if ($height === false || $height == '') {
    191191            $return .=' scrolling="no" height="1200px"';
    192             $script .= '<script type="text/javascript">var _nu_iframe=document.getElementById("nutickets-frame-'.$id.'");function setDialogSize(a){window.onresize&&window.onresize();"'.esc_url($http).'"===a.origin||"'.esc_url($https).'"===a.origin?_nu_iframe.style.height=a.data+"px":(_nu_iframe.style.height=Math.min(900,Math.max(getHeight(),450))+"px",_nu_iframe.style.overflowY="scroll",_nu_iframe.setAttribute("scrolling","yes"))}window.addEventListener("message",setDialogSize,!1);_nu_iframe.addEventListener("load",nuScrollToiFrame);';
     192            $script .= '<script type="text/javascript">var _nu_iframe=document.getElementById("nutickets-frame-'.$id.'");function setDialogSize(a){window.onresize&&window.onresize();a.origin.match(/^http(s)?:\/\/(.*).nutickets.(com|co.za)(\/)?$/i)!==null?_nu_iframe.style.height=a.data+"px":(_nu_iframe.style.height=Math.min(900,Math.max(getHeight(),450))+"px",_nu_iframe.style.overflowY="scroll",_nu_iframe.setAttribute("scrolling","yes"))}window.addEventListener("message",setDialogSize,!1);_nu_iframe.addEventListener("load",nuScrollToiFrame);';
    193193            if ($autoscroll) {
    194194                $script .= 'function nuScrollToiFrame(){var a=0,b=_nu_iframe;if(b.offsetParent){do a+=b.offsetTop;while(b=b.offsetParent)}else a=_nu_iframe.offsetTop;"undefined"==typeof jQuery?window.scrollTo(0,a):jQuery("html, body").animate({scrollTop:a},800)}';
  • nutickets-events/trunk/readme.txt

    r1366772 r1405481  
    33Tags: nutickets, ticketing, preregistration, ticket sales, sell
    44Requires at least: 3.0.1
    5 Tested up to: 4.4
    6 Stable tag: 4.4
     5Tested up to: 4.5.1
     6Stable tag: 4.5.1
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7171== Changelog ==
    7272
     73= 1.0.4 =
     74
     75Better support for iframe resize when current company's box office is connected to another Nutickets box office
     76
    7377= 1.0.3 =
    7478
Note: See TracChangeset for help on using the changeset viewer.