PATH:
home
/
letacommog
/
rdvenunclick.fr1
/
wp-content
/
plugins
/
acf-extended
/
assets
(function($){ if(typeof acf === 'undefined') return; /* * Init */ var flexible = acf.getFieldType('flexible_content'); var model = flexible.prototype; /* * Actions */ model.events['click [data-action="acfe-flexible-modal-edit"]'] = 'acfeModalEdit'; model.acfeModalEdit = function(e, $el){ var flexible = this; // Layout var $layout = $el.closest('.layout'); // Modal data var $modal = $layout.find('> .acfe-modal.-fields'); var $handle = $layout.find('> .acf-fc-layout-handle'); var $layout_order = $handle.find('> .acf-fc-layout-order').outerHTML(); var $layout_title = $handle.find('.acfe-layout-title-text').text(); var close = false; if(flexible.has('acfeFlexibleCloseButton')){ close = acf.__('Close'); } // Open modal acfe.modal.open($modal, { title: $layout_order + ' ' + $layout_title, footer: close, onOpen: function(){ flexible.openLayout($layout); }, onClose: function(){ flexible.closeLayout($layout); } }); }; /* * Spawn */ acf.addAction('new_field/type=flexible_content', function(flexible){ if(flexible.has('acfeFlexibleModalEdition') && (flexible.has('acfeFlexiblePlaceholder') || flexible.has('acfeFlexiblePreview'))){ // Remove Collapse Action flexible.removeEvents({'click [data-name="collapse-layout"]': 'onClickCollapse'}); // Remove placeholder Collapse Action flexible.removeEvents({'click .acfe-fc-placeholder': 'onClickCollapse'}); } }); })(jQuery);
[+]
..
[-] acf-extended-fg.css
[edit]
[-] acf-extended-fc.js
[edit]
[-] acf-extended-repeater.css
[edit]
[-] acf-extended-fc-modal-select.css
[edit]
[-] acf-extended-fg.js
[edit]
[-] acf-extended-form.js
[edit]
[-] acf-extended-fc-control.js
[edit]
[-] acf-extended.js
[edit]
[-] acf-extended-repeater.js
[edit]
[-] acf-extended-fields.js
[edit]
[-] acf-extended-fc-modal-select.js
[edit]
[-] acf-extended.css
[edit]
[-] acf-extended-fc-modal-edit.css
[edit]
[-] acf-extended-modal.css
[edit]
[-] acf-extended-fc.css
[edit]
[-] acf-extended-fc-modal-edit.js
[edit]
[-] acf-extended-fc-control.css
[edit]
[-] acf-extended-ui.css
[edit]
[-] acf-extended-admin.css
[edit]