You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
1.6KB

  1. (self.webpackChunk=self.webpackChunk||[]).push([[459],{8406:(e,a,t)=>{"use strict";t(4812);function n(){$(".lc-filemanager-delete").off("click"),$(".lc-filemanager-delete").on("click",(function(e){var a=$(this);$("#"+a.data("id")).val(""),$("#"+a.data("id")+"_preview").prop("src",""),$("#"+a.data("id")+"_preview_text").html("Aucun fichier")})),$(".lc-filemanager-open").off("click"),$(".lc-filemanager-open").on("click",(function(e){var a=$(this);$("#lc-filemanager-frame").off("load"),$("#lc-filemanager-frame").on("load",(function(){$("#lc-filemanager-frame").contents().on("click",".select",(function(){var e=$(this).attr("data-path");$("#"+a.data("id")).val(e),$("#"+a.data("id")+"_preview").prop("src",e),$("#"+a.data("id")+"_preview_text").html(e),$("#lc-filemanager-modal").modal("hide")}))})),$("#lc-filemanager-frame").prop("src",a.data("target")),$("#lc-filemanager-modal").modal("show")}))}$(document).ready((function(){n()})),$(".field-collection").bind("collection-add-item",(function(){n()}))},7065:(e,a,t)=>{"use strict";var n=t(3099),i=t(111),c=[].slice,r={},l=function(e,a,t){if(!(a in r)){for(var n=[],i=0;i<a;i++)n[i]="a["+i+"]";r[a]=Function("C,a","return new C("+n.join(",")+")")}return r[a](e,t)};e.exports=Function.bind||function(e){var a=n(this),t=c.call(arguments,1),r=function(){var n=t.concat(c.call(arguments));return this instanceof r?l(a,n.length,n):a.apply(e,n)};return i(a.prototype)&&(r.prototype=a.prototype),r}},4812:(e,a,t)=>{t(694)({target:"Function",proto:!0},{bind:t(7065)})}},e=>{"use strict";e.O(0,[381],(()=>{return a=8406,e(e.s=a);var a}));e.O()}]);