From a50848f6d77c8d7f1660e38d83bf27b6b3c05e87 Mon Sep 17 00:00:00 2001 From: SecretR Date: Thu, 7 Feb 2013 09:22:37 +0200 Subject: [PATCH] fixes #94 - Check All checkboxes that don't check all - switched from non-standard (Harmony Proposal) to generic JS method --- e107_web/js/core/admin.jquery.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e107_web/js/core/admin.jquery.js b/e107_web/js/core/admin.jquery.js index 3592adc6b..66073b1d3 100644 --- a/e107_web/js/core/admin.jquery.js +++ b/e107_web/js/core/admin.jquery.js @@ -195,7 +195,7 @@ $(document).ready(function() // Check-All checkbox toggle $("input.toggle-all").click(function(evt) { 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] + '"]'; }