Plugin Directory

Changeset 3202306


Ignore:
Timestamp:
12/04/2024 11:03:33 AM (16 months ago)
Author:
raldea89
Message:

JS Files update

Location:
modula-best-grid-gallery
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • modula-best-grid-gallery/tags/2.11.4/assets/js/admin/modula-edit.js

    r3202255 r3202306  
    169169    });
    170170
    171     const sideSortables = document.getElementById('side-sortables');
    172     const submitDiv = document.getElementById('submitdiv');
    173     const offsetTop = submitDiv.offsetTop + 100;
    174     const stickyClass = 'is-sticky';
    175171    const checkSticky = () => {
     172        const sideSortables = document.getElementById('side-sortables');
     173        const submitDiv = document.getElementById('submitdiv');
     174
     175        if ( ! submitDiv || ! sideSortables ) {
     176            return;
     177        }
     178       
     179        const offsetTop = submitDiv.offsetTop + 100;
     180        const stickyClass = 'is-sticky';
    176181        if (window.scrollY >= offsetTop) {
    177182            sideSortables.classList.add(stickyClass);
  • modula-best-grid-gallery/tags/2.11.4/assets/js/admin/modula-edit.min.js

    r3202255 r3202306  
    1 !function(e){"use strict";e(document).ready((function(){e(".modula-no-drag #normal-sortables, .modula-no-drag #side-sortables").off(),e(".modula-feedback-notice .notice-dismiss").click((function(o){o.preventDefault();var l=e(this).parent();e.ajax({method:"POST",url:ajaxurl,data:{action:"modula-edit-notice"}}).done((function(e){l.remove()}))})),e(".copy-modula-shortcode").click((function(o){o.preventDefault();var l=e(this).parent().find("input");l.focus(),l.select(),document.execCommand("copy"),e(this).next("span").text("Shortcode copied"),e(".copy-modula-shortcode").not(e(this)).parent().find("span").text("")})),e("body").on("click","#modula-lightbox-upgrade .notice-dismiss",(function(o){o.preventDefault();var l=e(this).parent(),a={action:"modula_lbu_notice",nonce:modulaHelper._wpnonce};e.post(modulaHelper.ajax_url,a,(function(e){l.remove()}))}))}));const o=o=>{o.preventDefault();const a=o.data.upsell;e.get(modulaHelper.ajax_url,{action:"modula_modal-"+a+"_upgrade"},(o=>{e("body").addClass("modal-open"),e("body").append(o),e(document).one("click",".modula-modal__overlay."+a,{upsell:a},l),e(document).one("click",".modula-modal__dismiss."+a,{upsell:a},l)}))},l=o=>{const l=o.data.upsell;e(".modula-modal__overlay."+l).remove(),e("body").removeClass("modal-open")};e("body").on("click",'#adminmenu #menu-posts-modula-gallery ul li a[href="edit.php?post_type=modula-gallery&page=#modula-albums"]',{upsell:"albums"},o),e("body").on("click",'#adminmenu #menu-posts-modula-gallery ul li a[href="edit.php?post_type=modula-gallery&page=#gallery-defaults"]',{upsell:"gallery-defaults"},o),e("body").on("click",'#adminmenu #menu-posts-modula-gallery ul li a[href="edit.php?post_type=modula-gallery&page=#albums-defaults"]',{upsell:"albums-defaults"},o),e("body").on("click",'#adminmenu #menu-posts-modula-gallery ul li a[href="edit.php?post_type=modula-gallery&page=go-pro"]',(function(e){e.preventDefault(),window.open("https://wp-modula.com/pricing/?utm_source=modula-lite&utm_medium=admin-menu&utm_campaign=upsell","_blank")})),e("body").on("click",'#adminmenu #menu-posts-modula-gallery ul li a[href="edit.php?post_type=modula-gallery&page=#modula-licenses"]',{upsell:"image-licensing"},o),e("body").on("click","#modula-pro-bulk-editor-upsell .button",{upsell:"bulk-editor"},o),jQuery(window).on("load",(function(){let e=new URLSearchParams(window.location.search);e.has("page")&&"modula-lite-vs-pro"===e.get("page")&&e.has("extension")&&jQuery("html,body").animate({scrollTop:jQuery(".wpchill-plans-table.wpchill-highlight").offset().top-150},600)}));const a=document.getElementById("side-sortables"),t=a.offsetTop,n="is-sticky",u=()=>{window.scrollY>=t?a.classList.add(n):a.classList.remove(n)};window.addEventListener("scroll",u),u()}(jQuery),function(e){var o={},l={};o.on=function(e,o){l[e]||(l[e]=[]),l[e].push(o)},o.off=function(e,o){l[e]&&(l[e]=l[e].filter((function(e){return e!==o})))},o.emit=function(e,o){l[e]&&l[e].forEach((function(e){e(o)}))},e.modulaEventBus=o}(this);
     1!function(e){"use strict";e(document).ready((function(){e(".modula-no-drag #normal-sortables, .modula-no-drag #side-sortables").off(),e(".modula-feedback-notice .notice-dismiss").click((function(o){o.preventDefault();var l=e(this).parent();e.ajax({method:"POST",url:ajaxurl,data:{action:"modula-edit-notice"}}).done((function(e){l.remove()}))})),e(".copy-modula-shortcode").click((function(o){o.preventDefault();var l=e(this).parent().find("input");l.focus(),l.select(),document.execCommand("copy"),e(this).next("span").text("Shortcode copied"),e(".copy-modula-shortcode").not(e(this)).parent().find("span").text("")})),e("body").on("click","#modula-lightbox-upgrade .notice-dismiss",(function(o){o.preventDefault();var l=e(this).parent(),a={action:"modula_lbu_notice",nonce:modulaHelper._wpnonce};e.post(modulaHelper.ajax_url,a,(function(e){l.remove()}))}))}));const o=o=>{o.preventDefault();const a=o.data.upsell;e.get(modulaHelper.ajax_url,{action:"modula_modal-"+a+"_upgrade"},(o=>{e("body").addClass("modal-open"),e("body").append(o),e(document).one("click",".modula-modal__overlay."+a,{upsell:a},l),e(document).one("click",".modula-modal__dismiss."+a,{upsell:a},l)}))},l=o=>{const l=o.data.upsell;e(".modula-modal__overlay."+l).remove(),e("body").removeClass("modal-open")};e("body").on("click",'#adminmenu #menu-posts-modula-gallery ul li a[href="edit.php?post_type=modula-gallery&page=#modula-albums"]',{upsell:"albums"},o),e("body").on("click",'#adminmenu #menu-posts-modula-gallery ul li a[href="edit.php?post_type=modula-gallery&page=#gallery-defaults"]',{upsell:"gallery-defaults"},o),e("body").on("click",'#adminmenu #menu-posts-modula-gallery ul li a[href="edit.php?post_type=modula-gallery&page=#albums-defaults"]',{upsell:"albums-defaults"},o),e("body").on("click",'#adminmenu #menu-posts-modula-gallery ul li a[href="edit.php?post_type=modula-gallery&page=go-pro"]',(function(e){e.preventDefault(),window.open("https://wp-modula.com/pricing/?utm_source=modula-lite&utm_medium=admin-menu&utm_campaign=upsell","_blank")})),e("body").on("click",'#adminmenu #menu-posts-modula-gallery ul li a[href="edit.php?post_type=modula-gallery&page=#modula-licenses"]',{upsell:"image-licensing"},o),e("body").on("click","#modula-pro-bulk-editor-upsell .button",{upsell:"bulk-editor"},o),jQuery(window).on("load",(function(){let e=new URLSearchParams(window.location.search);e.has("page")&&"modula-lite-vs-pro"===e.get("page")&&e.has("extension")&&jQuery("html,body").animate({scrollTop:jQuery(".wpchill-plans-table.wpchill-highlight").offset().top-150},600)}));const a=()=>{const e=document.getElementById("side-sortables"),o=document.getElementById("submitdiv");if(!o||!e)return;const l=o.offsetTop+100,a="is-sticky";window.scrollY>=l?e.classList.add(a):e.classList.remove(a)};window.addEventListener("scroll",a),a()}(jQuery),function(e){var o={},l={};o.on=function(e,o){l[e]||(l[e]=[]),l[e].push(o)},o.off=function(e,o){l[e]&&(l[e]=l[e].filter((function(e){return e!==o})))},o.emit=function(e,o){l[e]&&l[e].forEach((function(e){e(o)}))},e.modulaEventBus=o}(this);
  • modula-best-grid-gallery/trunk/assets/js/admin/modula-edit.js

    r3202255 r3202306  
    169169    });
    170170
    171     const sideSortables = document.getElementById('side-sortables');
    172     const submitDiv = document.getElementById('submitdiv');
    173     const offsetTop = submitDiv.offsetTop + 100;
    174     const stickyClass = 'is-sticky';
    175171    const checkSticky = () => {
     172        const sideSortables = document.getElementById('side-sortables');
     173        const submitDiv = document.getElementById('submitdiv');
     174
     175        if ( ! submitDiv || ! sideSortables ) {
     176            return;
     177        }
     178       
     179        const offsetTop = submitDiv.offsetTop + 100;
     180        const stickyClass = 'is-sticky';
    176181        if (window.scrollY >= offsetTop) {
    177182            sideSortables.classList.add(stickyClass);
  • modula-best-grid-gallery/trunk/assets/js/admin/modula-edit.min.js

    r3202255 r3202306  
    1 !function(e){"use strict";e(document).ready((function(){e(".modula-no-drag #normal-sortables, .modula-no-drag #side-sortables").off(),e(".modula-feedback-notice .notice-dismiss").click((function(o){o.preventDefault();var l=e(this).parent();e.ajax({method:"POST",url:ajaxurl,data:{action:"modula-edit-notice"}}).done((function(e){l.remove()}))})),e(".copy-modula-shortcode").click((function(o){o.preventDefault();var l=e(this).parent().find("input");l.focus(),l.select(),document.execCommand("copy"),e(this).next("span").text("Shortcode copied"),e(".copy-modula-shortcode").not(e(this)).parent().find("span").text("")})),e("body").on("click","#modula-lightbox-upgrade .notice-dismiss",(function(o){o.preventDefault();var l=e(this).parent(),a={action:"modula_lbu_notice",nonce:modulaHelper._wpnonce};e.post(modulaHelper.ajax_url,a,(function(e){l.remove()}))}))}));const o=o=>{o.preventDefault();const a=o.data.upsell;e.get(modulaHelper.ajax_url,{action:"modula_modal-"+a+"_upgrade"},(o=>{e("body").addClass("modal-open"),e("body").append(o),e(document).one("click",".modula-modal__overlay."+a,{upsell:a},l),e(document).one("click",".modula-modal__dismiss."+a,{upsell:a},l)}))},l=o=>{const l=o.data.upsell;e(".modula-modal__overlay."+l).remove(),e("body").removeClass("modal-open")};e("body").on("click",'#adminmenu #menu-posts-modula-gallery ul li a[href="edit.php?post_type=modula-gallery&page=#modula-albums"]',{upsell:"albums"},o),e("body").on("click",'#adminmenu #menu-posts-modula-gallery ul li a[href="edit.php?post_type=modula-gallery&page=#gallery-defaults"]',{upsell:"gallery-defaults"},o),e("body").on("click",'#adminmenu #menu-posts-modula-gallery ul li a[href="edit.php?post_type=modula-gallery&page=#albums-defaults"]',{upsell:"albums-defaults"},o),e("body").on("click",'#adminmenu #menu-posts-modula-gallery ul li a[href="edit.php?post_type=modula-gallery&page=go-pro"]',(function(e){e.preventDefault(),window.open("https://wp-modula.com/pricing/?utm_source=modula-lite&utm_medium=admin-menu&utm_campaign=upsell","_blank")})),e("body").on("click",'#adminmenu #menu-posts-modula-gallery ul li a[href="edit.php?post_type=modula-gallery&page=#modula-licenses"]',{upsell:"image-licensing"},o),e("body").on("click","#modula-pro-bulk-editor-upsell .button",{upsell:"bulk-editor"},o),jQuery(window).on("load",(function(){let e=new URLSearchParams(window.location.search);e.has("page")&&"modula-lite-vs-pro"===e.get("page")&&e.has("extension")&&jQuery("html,body").animate({scrollTop:jQuery(".wpchill-plans-table.wpchill-highlight").offset().top-150},600)}));const a=document.getElementById("side-sortables"),t=a.offsetTop,n="is-sticky",u=()=>{window.scrollY>=t?a.classList.add(n):a.classList.remove(n)};window.addEventListener("scroll",u),u()}(jQuery),function(e){var o={},l={};o.on=function(e,o){l[e]||(l[e]=[]),l[e].push(o)},o.off=function(e,o){l[e]&&(l[e]=l[e].filter((function(e){return e!==o})))},o.emit=function(e,o){l[e]&&l[e].forEach((function(e){e(o)}))},e.modulaEventBus=o}(this);
     1!function(e){"use strict";e(document).ready((function(){e(".modula-no-drag #normal-sortables, .modula-no-drag #side-sortables").off(),e(".modula-feedback-notice .notice-dismiss").click((function(o){o.preventDefault();var l=e(this).parent();e.ajax({method:"POST",url:ajaxurl,data:{action:"modula-edit-notice"}}).done((function(e){l.remove()}))})),e(".copy-modula-shortcode").click((function(o){o.preventDefault();var l=e(this).parent().find("input");l.focus(),l.select(),document.execCommand("copy"),e(this).next("span").text("Shortcode copied"),e(".copy-modula-shortcode").not(e(this)).parent().find("span").text("")})),e("body").on("click","#modula-lightbox-upgrade .notice-dismiss",(function(o){o.preventDefault();var l=e(this).parent(),a={action:"modula_lbu_notice",nonce:modulaHelper._wpnonce};e.post(modulaHelper.ajax_url,a,(function(e){l.remove()}))}))}));const o=o=>{o.preventDefault();const a=o.data.upsell;e.get(modulaHelper.ajax_url,{action:"modula_modal-"+a+"_upgrade"},(o=>{e("body").addClass("modal-open"),e("body").append(o),e(document).one("click",".modula-modal__overlay."+a,{upsell:a},l),e(document).one("click",".modula-modal__dismiss."+a,{upsell:a},l)}))},l=o=>{const l=o.data.upsell;e(".modula-modal__overlay."+l).remove(),e("body").removeClass("modal-open")};e("body").on("click",'#adminmenu #menu-posts-modula-gallery ul li a[href="edit.php?post_type=modula-gallery&page=#modula-albums"]',{upsell:"albums"},o),e("body").on("click",'#adminmenu #menu-posts-modula-gallery ul li a[href="edit.php?post_type=modula-gallery&page=#gallery-defaults"]',{upsell:"gallery-defaults"},o),e("body").on("click",'#adminmenu #menu-posts-modula-gallery ul li a[href="edit.php?post_type=modula-gallery&page=#albums-defaults"]',{upsell:"albums-defaults"},o),e("body").on("click",'#adminmenu #menu-posts-modula-gallery ul li a[href="edit.php?post_type=modula-gallery&page=go-pro"]',(function(e){e.preventDefault(),window.open("https://wp-modula.com/pricing/?utm_source=modula-lite&utm_medium=admin-menu&utm_campaign=upsell","_blank")})),e("body").on("click",'#adminmenu #menu-posts-modula-gallery ul li a[href="edit.php?post_type=modula-gallery&page=#modula-licenses"]',{upsell:"image-licensing"},o),e("body").on("click","#modula-pro-bulk-editor-upsell .button",{upsell:"bulk-editor"},o),jQuery(window).on("load",(function(){let e=new URLSearchParams(window.location.search);e.has("page")&&"modula-lite-vs-pro"===e.get("page")&&e.has("extension")&&jQuery("html,body").animate({scrollTop:jQuery(".wpchill-plans-table.wpchill-highlight").offset().top-150},600)}));const a=()=>{const e=document.getElementById("side-sortables"),o=document.getElementById("submitdiv");if(!o||!e)return;const l=o.offsetTop+100,a="is-sticky";window.scrollY>=l?e.classList.add(a):e.classList.remove(a)};window.addEventListener("scroll",a),a()}(jQuery),function(e){var o={},l={};o.on=function(e,o){l[e]||(l[e]=[]),l[e].push(o)},o.off=function(e,o){l[e]&&(l[e]=l[e].filter((function(e){return e!==o})))},o.emit=function(e,o){l[e]&&l[e].forEach((function(e){e(o)}))},e.modulaEventBus=o}(this);
Note: See TracChangeset for help on using the changeset viewer.