views.static.entity.js.expandable.js Maven / Gradle / Ivy
!function(t){var e={};function n(r){if(e[r])return e[r].exports;var a=e[r]={i:r,l:!1,exports:{}};return t[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)n.d(r,a,function(e){return t[e]}.bind(null,a));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=18)}({1:function(t,e){t.exports=jQuery},18:function(t,e,n){(function(t){window.EntityModule.registerInitializer(function(e){var n=t("table[data-tbl-entity-type]",e),r=n.data("tbl-entity-type");n.find("tbody tr[data-entity-id],tbody tr[data-summary-url]").click(function(e){if(t(e.target).closest("a").length>0)return!0;var n=t(e.currentTarget);if(void 0!==n.next().attr("data-summary"))n.toggleClass("summary-expanded"),n.next().fadeToggle({duration:200,complete:function(){}});else{var a=t(' '),i=n.data("entity-id"),u=n.data("summary-url");o.appendTo(a),n.after(a),u?o.load(u,null,function(){n.toggleClass("summary-expanded"),a.fadeIn({duration:200}),window.EntityModule.initializeFormElements(o)}):i&&o.load(r+"/"+n.attr("data-entity-id")+"?view=summary&_partial=content",null,function(){n.toggleClass("summary-expanded"),a.fadeIn({duration:200}),window.EntityModule.initializeFormElements(o)})}})})}).call(this,n(1))}});
//# sourceMappingURL=expandable.js.map
'),o=t("
© 2015 - 2024 Weber Informatics LLC | Privacy Policy