Changeset 2200:0b1f90d5bb2a for admin/js/common.js
- Timestamp:
- 10/02/13 12:05:46 (12 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/js/common.js
r2187 r2200 280 280 $(e).append(document.createTextNode(' ')); 281 281 282 target = target || $(e).parents('form').find('input[type="checkbox"]'); 283 284 var a = document.createElement('a'); 285 a.href='#'; 286 $(a).append(document.createTextNode(dotclear.msg.select_all)); 287 a.onclick = function() { 282 $('<a href="#">'+dotclear.msg.select_all+'</a>').click(function() { 283 if (target === undefined) { 284 target = $(e).parents('form').find('input[type="checkbox"]'); 285 } 288 286 target.check(); 289 287 return false; 290 }; 291 $(e).append(a); 292 288 }).appendTo($(e)); 293 289 $(e).append(document.createTextNode(' | ')); 294 290 295 a = document.createElement('a');296 a.href='#';297 $(a).append(document.createTextNode(dotclear.msg.no_selection));298 a.onclick = function() {291 $('<a href="#">'+dotclear.msg.no_selection+'</a>').click(function() { 292 if (target === undefined) { 293 target = $(e).parents('form').find('input[type="checkbox"]'); 294 } 299 295 target.unCheck(); 300 296 return false; 301 }; 302 $(e).append(a); 303 297 }).appendTo($(e)); 304 298 $(e).append(document.createTextNode(' - ')); 305 299 306 a = document.createElement('a');307 a.href='#';308 $(a).append(document.createTextNode(dotclear.msg.invert_sel));309 a.onclick = function() {300 $('<a href="#">'+dotclear.msg.invert_sel+'</a>').click(function() { 301 if (target === undefined) { 302 target = $(e).parents('form').find('input[type="checkbox"]'); 303 } 310 304 target.toggleCheck(); 311 305 return false; 312 }; 313 $(e).append(a); 306 }).appendTo($(e)); 314 307 }, 315 308
Note: See TracChangeset
for help on using the changeset viewer.