PluginProbe
Block Animations, Motion & Scroll Effects – Ghost Kit / 3.4.1
Block Animations, Motion & Scroll Effects – Ghost Kit v3.4.1
3.7.2 3.7.1 3.7.0 3.6.1 trunk 1.6.3 2.25.0 3.3.0 3.3.1 3.3.2 3.3.3 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.6 3.5.0 3.5.1 3.6.0
ghostkit / build / assets / admin / js / reusable-widget.js

reusable-widget.js in Block Animations, Motion & Scroll Effects – Ghost Kit 3.4.1, at build/assets/admin/js/reusable-widget.js

1 lines 838 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 (()=>{"use strict";var t={n:e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return t.d(n,{a:n}),n},d:(e,n)=>{for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)};const e=window.jQuery;var n=t.n(e);function o(t){t||(t=n()('[id*="ghostkit_reusable_widget"].widget')),t.each((function(){const t=n()(this),e=t.find(".gkt-reusable-block-edit-button"),o=t.find(".gkt-reusable-block-select");if(!e.length||!o.length)return;const d=e.attr("data-admin-url"),i=o.val();i?(e.find("a").attr("href",`${d}post.php?post=${i}&action=edit`),e.show()):e.hide()}))}o(),n()(document).on("widget-added widget-updated",((t,e)=>{o(e)})),n()(document).on("change",".gkt-reusable-block-select",(function(){o(n()(this).closest('[id*="ghostkit_reusable_widget"].widget'))}))})();