1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-12 18:46: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:
SecretR
2013-02-07 09:22:37 +02:00
parent dbca10cb1c
commit a50848f6d7

View File

@ -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] + '"]';
} }