Changeset 343:f9fcb964c910 for admin/js
- Timestamp:
- 06/07/11 08:57:44 (14 years ago)
- Branch:
- default
- Parents:
- 342:a5d04d2da753 (diff), 341:796cb01c7120 (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. - Location:
- admin/js
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/js/_index.js
r297 r343 65 65 // allow to hide quick entry div, and remember choice 66 66 $('#quick h3').toggleWithLegend($('#quick').children().not('h3'),{ 67 cookie: 'dcx_quick_entry' ,68 } );67 cookie: 'dcx_quick_entry' 68 }, positionFooter); 69 69 }); -
admin/js/common.js
r314 r343 57 57 } 58 58 59 jQuery.fn.toggleWithLegend = function(target,s , callback) {59 jQuery.fn.toggleWithLegend = function(target,s) { 60 60 var defaults = { 61 61 img_on_src: dotclear.img_plus_src, … … 79 79 } 80 80 81 var toggle = function(i,speed , callback) {81 var toggle = function(i,speed) { 82 82 speed = speed || 0; 83 83 if (p.hide) { 84 84 $(i).get(0).src = p.img_on_src; 85 85 $(i).get(0).alt = p.img_on_alt; 86 target.hide(speed, callback);86 target.hide(speed, positionFooter); 87 87 } else { 88 88 $(i).get(0).src = p.img_off_src; 89 89 $(i).get(0).alt = p.img_off_alt; 90 target.show(speed, callback);90 target.show(speed, positionFooter); 91 91 if (p.fn) { 92 92 p.fn.apply(target); … … 122 122 $(ctarget).css('cursor','pointer'); 123 123 $(ctarget).click(function() { 124 toggle(i,p.speed, callback);124 toggle(i,p.speed, positionFooter); 125 125 return false; 126 126 }); … … 356 356 } 357 357 $('#blog-menu h3:first').toggleWithLegend($('#blog-menu ul:first'), 358 $.extend({cookie:'dc_blog_menu'},menu_settings), 359 positionFooter 358 $.extend({cookie:'dc_blog_menu'},menu_settings) 360 359 ); 361 360 $('#system-menu h3:first').toggleWithLegend($('#system-menu ul:first'), 362 $.extend({cookie:'dc_system_menu'},menu_settings), 363 positionFooter 361 $.extend({cookie:'dc_system_menu'},menu_settings) 364 362 ); 365 363 $('#plugins-menu h3:first').toggleWithLegend($('#plugins-menu ul:first'), 366 $.extend({cookie:'dc_plugins_menu'},menu_settings), 367 positionFooter 364 $.extend({cookie:'dc_plugins_menu'},menu_settings) 368 365 ); 369 366 $('#favorites-menu h3:first').toggleWithLegend($('#favorites-menu ul:first'), 370 $.extend({cookie:'dc_favorites_menu',hide:false,reverse_cookie:true},menu_settings), 371 positionFooter 367 $.extend({cookie:'dc_favorites_menu',hide:false,reverse_cookie:true},menu_settings) 372 368 ); 373 369 -
admin/js/common.js
r299 r343 335 335 position: "static", 336 336 padding: ".75em 0", 337 width: "auto" ,337 width: "auto" 338 338 }); 339 339 }
Note: See TracChangeset
for help on using the changeset viewer.