FIX default value of selectMasssAction broken
This commit is contained in:
parent
20fad86520
commit
90e0ead953
@ -669,12 +669,14 @@ class Form
|
|||||||
/* console.log( index + ": " + $( this ).text() ); */
|
/* console.log( index + ": " + $( this ).text() ); */
|
||||||
if ($(this).is(\':checked\')) atleastoneselected++;
|
if ($(this).is(\':checked\')) atleastoneselected++;
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log("initCheckForSelect mode="+mode+" atleastoneselected="+atleastoneselected);
|
console.log("initCheckForSelect mode="+mode+" atleastoneselected="+atleastoneselected);
|
||||||
|
|
||||||
if (atleastoneselected || '.$alwaysvisible.')
|
if (atleastoneselected || '.$alwaysvisible.')
|
||||||
{
|
{
|
||||||
jQuery(".massaction").show();
|
jQuery(".massaction").show();
|
||||||
'.($selected ? 'if (atleastoneselected) { jQuery(".massactionselect").val("'.$selected.'"); jQuery(".massactionconfirmed").prop(\'disabled\', false); }' : '').'
|
'.($selected ? 'if (atleastoneselected) { jQuery(".massactionselect").val("'.$selected.'").trigger(\'change\'); jQuery(".massactionconfirmed").prop(\'disabled\', false); }' : '').'
|
||||||
'.($selected ? 'if (! atleastoneselected) { jQuery(".massactionselect").val("0"); jQuery(".massactionconfirmed").prop(\'disabled\', true); } ' : '').'
|
'.($selected ? 'if (! atleastoneselected) { jQuery(".massactionselect").val("0").trigger(\'change\'); jQuery(".massactionconfirmed").prop(\'disabled\', true); } ' : '').'
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user