Skip to content
Snippets Groups Projects
Commit 2880a8d1 authored by Ghislain Loas's avatar Ghislain Loas
Browse files

hotline #74638 fix global.js raddioToggleVisibility

parent 5e561577
4 merge requests!2660Master,!2631Master,!2630Hotline,!2628hotline #74638 fix global.js raddioToggleVisibility
Pipeline #4012 passed with stage
in 35 minutes and 5 seconds
- ticket #74638 : Adminitration : Boîte article : correction de l'affichage des propriétés "nombre d'article à afficher" et "nombre à analyser"
\ No newline at end of file
......@@ -191,22 +191,22 @@ function radioToggleVisibilityForElement(eventSourceSelector, objectToShowSelect
visibleForValues = [visibleForValues];
return toggleVisibilityForElement(eventSourceSelector,
objectToShowSelector,
function(element) {
return ($(element).attr('checked') == 'checked') && (0 <= $.inArray(element.val(), visibleForValues));
});
objectToShowSelector,
function(element) {
return $(element).is(':checked') && (0 <= $.inArray(element.val(), visibleForValues));
});
}
function checkBoxToggleVisibilityForElement(eventSourceSelector, objectToShowSelector, visibleWhenChecked) {
return toggleVisibilityForElement(eventSourceSelector,
objectToShowSelector,
function(element) {
function(element) {
if(visibleWhenChecked)
return $(element).is(':checked');
return !$(element).is(':checked');
});
});
}
......
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