PluginProbe
WP Ultimate Post Grid / 2.8.2
WP Ultimate Post Grid v2.8.2
4.1.1 trunk 1.5 1.6 1.7 1.7.1 1.7.2 1.8 1.9 2.0 2.1 2.2 2.3 2.4.0 2.5.0 2.6.0 2.7.0 2.8.0 2.8.2 3.0.0 3.3.0 3.4.0 3.5.0 3.6.0 3.7.0 All 32 releases
wp-ultimate-post-grid / dist / admin.js

admin.js in WP Ultimate Post Grid 2.8.2, at dist/admin.js

1 lines 2.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 !function(t){var e={};function o(n){if(e[n])return e[n].exports;var u=e[n]={i:n,l:!1,exports:{}};return t[n].call(u.exports,u,u.exports,o),u.l=!0,u.exports}o.m=t,o.c=e,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var u in t)o.d(n,u,function(e){return t[e]}.bind(null,u));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=7)}({0:function(t,e){t.exports=window.jQuery},7:function(t,e,o){"use strict";o.r(e);o(8)},8:function(t,e,o){(function(t){t(document).ready(function(e){t("#wpupg_add_custom_image").on("click",function(e){e.preventDefault();var o=t(this),n=o.parents("#wpupg_form_post").find("#wpupg_custom_image"),u=o.parents("#wpupg_form_post").find("#wpupg_custom_image_id");if("function"==typeof wp.media)var i=wp.media({title:"Insert Media",button:{text:"Set Custom Image"},multiple:!1}).on("select",function(){var t=i.state().get("selection").first().toJSON();n.val(t.url),u.val(t.id)}).open()}),t("#wpupg_custom_image").on("keyup change",function(){t(this).siblings("#wpupg_custom_image_id").val("")}),t(".term-custom-image").on("click","#wpupg_custom_image_button.button-add",function(e){if("function"==typeof wp.media)var o=wp.media({title:wpupg_admin_post.text_add_grid_image,button:{text:wpupg_admin_post.text_add_grid_image},multiple:!1}).on("select",function(){var e=o.state().get("selection").first().toJSON();t("#wpupg_custom_image_img").attr("src",e.url),t("#wpupg_custom_image").val(e.id),t("#wpupg_custom_image_button").removeClass("button-add").addClass("button-remove").val(wpupg_admin_post.text_remove_grid_image)}).open()}),t(".term-custom-image").on("click","#wpupg_custom_image_button.button-remove",function(e){t("#wpupg_custom_image_img").attr("src",""),t("#wpupg_custom_image").val(""),t("#wpupg_custom_image_button").removeClass("button-remove").addClass("button-add").val(wpupg_admin_post.text_add_grid_image)})})}).call(this,o(0))}});