/**
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
/**
* JavaScript behavior to allow shift select in administrator grids
*/
(function() {
Joomla = Joomla || {};
Joomla.JMultiSelect = new Class({
initialize : function(table) {
this.table = document.id(table);
if (this.table) {
this.boxes = this.table.getElements('input[type=checkbox]');
this.boxes.addEvent('click', function(e){
this.doselect(e);
}.bind(this));
}
},
doselect: function(e) {
var current = document.id(e.target);
if (e.shift && typeOf(this.last) !== 'null') {
var checked = current.getProperty('checked') ? 'checked' : '';
var range = [this.boxes.indexOf(current), this.boxes.indexOf(this.last)].sort(function(a, b) {
//Shorthand to make sort() sort numerical instead of lexicographic
return a-b;
});
for (var i=range[0]; i <= range[1]; i++) {
this.boxes[i].setProperty('checked', checked);
}
}
this.last = current;
}
});
})();
| nama | waktu | ukuran | owner | perm | aksi |
|---|---|---|---|---|---|
| .. | |||||
| calendar-setup-uncompressed.js | 2014-04-14 19:55 | 8.75 KB | 76129f60960:kunden | -xw-x----- | |
| calendar-setup.js | 2014-04-14 19:55 | 3.02 KB | 76129f60960:kunden | -xw-x----- | |
| calendar-uncompressed.js | 2014-04-14 19:55 | 48.07 KB | 76129f60960:kunden | -xw-x----- | |
| calendar.js | 2014-04-14 19:55 | 29.6 KB | 76129f60960:kunden | -xw-x----- | |
| caption-uncompressed.js | 2014-04-14 19:55 | 1.47 KB | 76129f60960:kunden | -xw-x----- | |
| caption.js | 2014-04-14 19:55 | 729 B | 76129f60960:kunden | -xw-x----- | |
| combobox-uncompressed.js | 2014-04-14 19:55 | 4.76 KB | 76129f60960:kunden | -xw-x----- | |
| combobox.js | 2014-04-14 19:55 | 1.84 KB | 76129f60960:kunden | -xw-x----- | |
| core-uncompressed.js | 2014-04-14 19:55 | 13.16 KB | 76129f60960:kunden | -xw-x----- | |
| core.js | 2014-04-14 19:55 | 4.67 KB | 76129f60960:kunden | -xw-x----- | |
| highlighter-uncompressed.js | 2014-04-14 19:55 | 2.87 KB | 76129f60960:kunden | -xw-x----- | |
| highlighter.js | 2014-04-14 19:55 | 1.77 KB | 76129f60960:kunden | -xw-x----- | |
| index.html | 2014-04-14 19:55 | 30 B | 76129f60960:kunden | -xw-x----- | |
| modal-uncompressed.js | 2014-04-14 19:55 | 12.83 KB | 76129f60960:kunden | -xw-x----- | |
| modal.js | 2014-04-14 19:55 | 9.5 KB | 76129f60960:kunden | -xw-x----- | |
| mooRainbow-uncompressed.js | 2014-04-14 19:55 | 18.84 KB | 76129f60960:kunden | -xw-x----- | |
| mooRainbow.js | 2014-04-14 19:55 | 13.35 KB | 76129f60960:kunden | -xw-x----- | |
| mootools-core-uncompressed.js | 2014-04-14 19:55 | 156.73 KB | 76129f60960:kunden | -xw-x----- | |
| mootools-core.js | 2014-04-14 19:55 | 94.1 KB | 76129f60960:kunden | -xw-x----- | |
| mootools-more-uncompressed.js | 2014-04-14 19:55 | 343.17 KB | 76129f60960:kunden | -xw-x----- | |
| mootools-more.js | 2014-04-14 19:55 | 232.75 KB | 76129f60960:kunden | -xw-x----- | |
| mootree-uncompressed.js | 2014-04-14 19:55 | 21.39 KB | 76129f60960:kunden | -xw-x----- | |
| mootree.js | 2014-04-14 19:55 | 5.95 KB | 76129f60960:kunden | -xw-x----- | |
| multiselect.js | 2014-04-14 19:55 | 1.08 KB | 76129f60960:kunden | -xw-x----- | |
| passwordstrength.js | 2014-04-14 19:55 | 2.36 KB | 76129f60960:kunden | -xw-x----- | |
| progressbar-uncompressed.js | 2014-04-14 19:55 | 2.3 KB | 76129f60960:kunden | -xw-x----- | |
| progressbar.js | 2014-04-14 19:55 | 1.44 KB | 76129f60960:kunden | -xw-x----- | |
| swf-uncompressed.js | 2014-04-14 19:55 | 11.09 KB | 76129f60960:kunden | -xw-x----- | |
| swf.js | 2014-04-14 19:55 | 7.06 KB | 76129f60960:kunden | -xw-x----- | |
| switcher-uncompressed.js | 2014-04-14 19:55 | 1.92 KB | 76129f60960:kunden | -xw-x----- | |
| switcher.js | 2014-04-14 19:55 | 1.29 KB | 76129f60960:kunden | -xw-x----- | |
| tabs.js | 2014-04-14 19:55 | 2.45 KB | 76129f60960:kunden | -xw-x----- | |
| uploader-uncompressed.js | 2014-04-14 19:55 | 6.13 KB | 76129f60960:kunden | -xw-x----- | |
| uploader.js | 2014-04-14 19:55 | 4.91 KB | 76129f60960:kunden | -xw-x----- | |
| validate-uncompressed.js | 2014-04-14 19:55 | 5.03 KB | 76129f60960:kunden | -xw-x----- | |
| validate.js | 2014-04-14 19:55 | 2.85 KB | 76129f60960:kunden | -xw-x----- | |