Changeset 234:e5b6717225f7
Legend:
- Unmodified
- Added
- Removed
-
admin/js/_index.js
r3 r234 4 4 var contentTb = new jsToolBar($('#post_content',f)[0]); 5 5 contentTb.switchMode($('#post_format',f).val()); 6 6 7 7 $('input[name=save]',f).click(function() { 8 8 quickPost(f,-2); 9 9 return false; 10 10 }); 11 11 12 12 if ($('input[name=save-publish]',f).length > 0) { 13 13 var btn = $('<input type="submit" value="' + $('input[name=save-publish]',f).val() + '" tabindex="3" />'); … … 19 19 }); 20 20 } 21 21 22 22 function quickPost(f,status) { 23 23 if (contentTb.getMode() == 'wysiwyg') { 24 24 contentTb.syncContents('iframe'); 25 25 } 26 26 27 27 var params = { 28 28 f: 'quickPost', … … 35 35 post_lang: $('#post_lang',f).val() 36 36 } 37 37 38 38 $('p.qinfo',f).remove(); 39 39 40 40 $.post('services.php',params,function(data) { 41 41 if ($('rsp[status=failed]',data).length > 0) { … … 57 57 } 58 58 } 59 59 60 60 $('fieldset',f).prepend(msg); 61 61 }); 62 62 } 63 63 } 64 64 65 65 // allow to hide quick entry div, and remember choice 66 66 $('#quick h3').toggleWithLegend($('#quick').children().not('h3'),{ 67 67 cookie: 'dcx_quick_entry', 68 } );68 }, positionFooter); 69 69 }); -
admin/js/common.js
r163 r234 315 315 } 316 316 }; 317 318 /* Sticky footer 319 -------------------------------------------------------- */ 320 function positionFooter() { 321 $("#wrapper").css({ overflow: "auto" }); 322 var page_height = $("#top").height() + $("#wrapper").height() - $("#footer").height(); 323 if( page_height < $(window).height() ){ 324 // calcul de la largeur 325 var page_width = $(document).width() - 30; 326 $("#footer").css({ 327 position: "absolute", 328 bottom: "10px", 329 width: page_width+"px", 330 padding: ".75em 0", 331 marginbottom: "0" 332 }); 333 } else { 334 $("#footer").css({ 335 position: "static", 336 padding: ".75em 0", 337 width: "auto", 338 }); 339 } 340 341 } 317 342 318 343 /* On document ready … … 367 392 // Sticky footer 368 393 positionFooter(); 369 function positionFooter() {370 $("#wrapper").css({ overflow: "auto" });371 var page_height = $("#top").height() + $("#wrapper").height() - $("#footer").height();372 if( page_height < $(window).height() ){373 // calcul de la largeur374 var page_width = $(document).width() - 30;375 $("#footer").css({376 position: "absolute",377 bottom: "10px",378 width: page_width+"px",379 padding: ".75em 0",380 marginbottom: "0"381 });382 } else {383 $("#footer").css({384 position: "static",385 padding: ".75em 0",386 width: "auto",387 });388 }389 390 }391 394 $(window).resize(positionFooter); 392 393 395 }); 394 396
Note: See TracChangeset
for help on using the changeset viewer.