Allow class="noshiftselect" to disable the multiple-select-on-shift-click behavior...
authorRoan Kattouw <catrope@users.mediawiki.org>
Tue, 24 Aug 2010 16:01:52 +0000 (16:01 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Tue, 24 Aug 2010 16:01:52 +0000 (16:01 +0000)
skins/common/wikibits.js

index d7bd3f9..da6fc17 100644 (file)
@@ -439,7 +439,7 @@ function addCheckboxClickHandlers( inputs, start ) {
 
        for ( var i = start; i < finish; i++ ) {
                var cb = inputs[i];
-               if ( !cb.type || cb.type.toLowerCase() != 'checkbox' ) {
+               if ( !cb.type || cb.type.toLowerCase() != 'checkbox' || ( ' ' + cb.className + ' ' ).indexOf( ' noshiftselect ' )  != -1 ) {
                        continue;
                }
                var end = checkboxes.length;