mirror of
https://github.com/e107inc/e107.git
synced 2025-07-29 02:40:25 +02:00
Fixes #1020 - checkall was failing.
This commit is contained in:
@@ -539,15 +539,18 @@ $(document).ready(function()
|
||||
// Check-All checkbox toggle
|
||||
$("input.toggle-all").click(function(evt) {
|
||||
var selector = 'input[type="checkbox"].checkbox';
|
||||
|
||||
if($(this).val().indexOf('jstarget:') === 0) {
|
||||
selector = 'input[type="checkbox"][name^="' + $(this).val().split(/jstarget\:/)[1] + '"]';
|
||||
}
|
||||
|
||||
if($(this).is(":checked")){
|
||||
$(selector).attr("checked", "checked");
|
||||
|
||||
if($(this).is(":checked")){
|
||||
//$(selector).attr("checked", "checked");
|
||||
$(selector).prop('checked', true);
|
||||
}
|
||||
else{
|
||||
$(selector).removeAttr("checked");
|
||||
$(selector).prop('checked',false);
|
||||
// $(selector).removeAttr("checked");
|
||||
}
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user