mirror of
https://github.com/e107inc/e107.git
synced 2025-07-12 10:36:20 +02:00
fixes #94 - Check All checkboxes that don't check all - switched from non-standard (Harmony Proposal) to generic JS method
This commit is contained in:
@ -195,7 +195,7 @@ $(document).ready(function()
|
|||||||
// Check-All checkbox toggle
|
// Check-All checkbox toggle
|
||||||
$("input.toggle-all").click(function(evt) {
|
$("input.toggle-all").click(function(evt) {
|
||||||
var selector = 'input[type="checkbox"].checkbox';
|
var selector = 'input[type="checkbox"].checkbox';
|
||||||
if($(this).val().startsWith('jstarget:')) {
|
if($(this).val().indexOf('jstarget:') === 0) {
|
||||||
selector = 'input[type="checkbox"][name^="' + $(this).val().split(/jstarget\:/)[1] + '"]';
|
selector = 'input[type="checkbox"][name^="' + $(this).val().split(/jstarget\:/)[1] + '"]';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user