Changeset 1829:db77f6bb5df9 for admin/js
- Timestamp:
- 09/11/13 13:26:20 (12 years ago)
- Branch:
- Ticket #1539
- Parents:
- 1828:5274b117ae55 (diff), 1792:3ad2e47ed52d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Files:
-
- 2 edited
-
admin/js/common.js (modified) (3 diffs)
-
admin/js/common.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
admin/js/common.js
r1789 r1829 263 263 }, 264 264 265 checkboxesHelpers: function(e ) {265 checkboxesHelpers: function(e, target) { 266 266 $(e).append(document.createTextNode(dotclear.msg.to_select)); 267 267 $(e).append(document.createTextNode(' ')); 268 268 269 target = target || $(e).parents('form').find('input[type="checkbox"]'); 270 269 271 var a = document.createElement('a'); 270 272 a.href='#'; 271 273 $(a).append(document.createTextNode(dotclear.msg.select_all)); 272 274 a.onclick = function() { 273 $(this).parents('form').find('input[type="checkbox"]').check();275 target.check(); 274 276 return false; 275 277 }; … … 282 284 $(a).append(document.createTextNode(dotclear.msg.no_selection)); 283 285 a.onclick = function() { 284 $(this).parents('form').find('input[type="checkbox"]').unCheck();286 target.unCheck(); 285 287 return false; 286 288 }; … … 293 295 $(a).append(document.createTextNode(dotclear.msg.invert_sel)); 294 296 a.onclick = function() { 295 $(this).parents('form').find('input[type="checkbox"]').toggleCheck();297 target.toggleCheck(); 296 298 return false; 297 299 }; -
admin/js/common.js
r1827 r1829 83 83 84 84 var set_user_pref = p.hide ^ p.reverse_user_pref; 85 if (p.user_pref && (p.user_pref in p.unfolded_sections)) {85 if (p.user_pref && p.unfolded_sections !== undefined && (p.user_pref in p.unfolded_sections)) { 86 86 p.hide = p.reverse_user_pref; 87 87 } … … 349 349 // remove class no-js from html tag; cf style/default.css for examples 350 350 $('body').removeClass('no-js'); 351 $('body').addClass('with-js'); 351 352 352 353 $('#wrapper').contents().each(function() {
Note: See TracChangeset
for help on using the changeset viewer.
