X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/82d463191442b0931e0c51c0cf4c2ef1383b400b..4708236959fbdf64a236fd2c1faa80cf1b98831e:/project/templates/explorer/file_xml.html diff --git a/project/templates/explorer/file_xml.html b/project/templates/explorer/file_xml.html index b78e3dee..53d536a1 100644 --- a/project/templates/explorer/file_xml.html +++ b/project/templates/explorer/file_xml.html @@ -2,7 +2,6 @@ {% load toolbar_tags %} {% block extrahead %} - @@ -18,22 +17,12 @@ function resizePanels() { $('iframe').width($(window).width() - $('#sidebar').outerWidth()); - $('iframe').height($(window).height() - 100); - $('#images-wrap, #toggle-sidebar').height($(window).height() - 100); - $('#images-wrap').width($('#sidebar').width() - 8); + $('iframe').height($(window).height() - $('iframe').position().top); + $('#toggle-sidebar').height($(window).height() - $('#toggle-sidebar').position().top); + $('#images-wrap').height($(window).height() - $('#images-wrap').position().top); + $('#images-wrap, #sidebar-toolbar').width($('#sidebar').width() - 10); } - $('#toggle-sidebar').toggle(function() { - $('#images-wrap').width(480); - $('#sidebar').width(488); - $('#images-wrap').data('lazyload:lastCheckedScrollTop', -10000); - resizePanels(); - }, function() { - $('#images-wrap').width(0); - $('#sidebar').width(8); - resizePanels(); - }) - $(window).resize(function() { resizePanels(); }) @@ -86,10 +75,11 @@ keys[event.keyCode](); } }, function(event) { - return event.ctrlKey && keys[event.keyCode]; + return event.altKey && keys[event.keyCode]; }); - // $('#sidebar').bind('resizable:resize', resizePanels).resizable('#toggle-sidebar'); + $('#sidebar').bind('resizable:resize', resizePanels) + .resizable('#toggle-sidebar', {minWidth: 8}); resizePanels(); } @@ -114,30 +104,39 @@ {% block breadcrumbs %}Platforma Redakcyjna ❯ plik {{ hash }}{% endblock breadcrumbs %} {% block maincontent %} - {% toolbar %} -