X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/5fa827a3cd9dcbfb587074f6046a66cbe1d5f5e4..662a8a111721df714e9c95f94db91d2d03d7b19d:/platforma/static/js/main.js?ds=inline diff --git a/platforma/static/js/main.js b/platforma/static/js/main.js index 3f4d30c2..15099585 100644 --- a/platforma/static/js/main.js +++ b/platforma/static/js/main.js @@ -715,7 +715,7 @@ function refreshHistory(callback){ +''+ this[1]+'') }); $.unblockUI(); - callback(); + if(callback) callback(); } }); }; @@ -887,11 +887,11 @@ $(function() { $('.vsplitbar').click(function() { if ($('#sidebar').width() == 0) { $('#sidebar').width(480).css({right: 0}).show(); - $('#source-editor, #simple-editor').css({right: 495}); + $('#editor .editor').css({right: 495}); $('.vsplitbar').css({right: 480}).addClass('active'); } else { $('#sidebar').width(0).hide(); - $('#source-editor, #simple-editor').css({right: 15}); + $('#editor .editor').css({right: 15}); $('.vsplitbar').css({right: 0}).removeClass('active'); } $(window).resize();