Skip to content
Snippets Groups Projects
Commit 9ff0cd53 authored by Laurent's avatar Laurent
Browse files

hotline #65216 article edit: when slideshow dialog is closed, validate button enabled

parent 51561674
Branches
Tags
3 merge requests!2464Master,!2463Hotline master,!2453hotline #65216 article edit: when slideshow dialog is closed, validate button enabled
Pipeline #3228 passed with stage
in 25 minutes and 5 seconds
- ticket #65216 : Articles: sur modification du carousel, le bouton "Valider" est accessible
\ No newline at end of file
......@@ -22,34 +22,29 @@
$.fn.on_form_change_do = function(options) {
var button = $(this);
var callback = options.callback;
var do_callback = function () { eval(options.callback); };
var form = button.parent().nextAll('form');
if (!form.size())
if (!form.length)
form = button.parent().prevAll('form');
if (!form.size())
if (!form.length)
form = button.closest('form');
if(!form.size())
if(!form.length)
return;
form.on('change paste input',
'input:not([id^="multiple-selection"]), select, textarea',
function()
{
eval(callback);
});
do_callback);
if( 'undefined' == typeof(CKEDITOR))
return;
for(var instance in CKEDITOR.instances)
CKEDITOR.instances[instance].on('change',
function()
{
eval(callback);
});
for(var instance in CKEDITOR.instances) {
CKEDITOR.instances[instance].on('change', do_callback);
CKEDITOR.instances[instance].on('dialogHide', do_callback);
}
}
} (jQuery));
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment