X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/e604fe43fe077291ff4d4bd528eb48ef6bec6d21..94ebe35e591f338c0a6a6ad3a63deed6e4f4fc11:/project/templates/explorer/file_xml.html diff --git a/project/templates/explorer/file_xml.html b/project/templates/explorer/file_xml.html index db00e6a8..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,25 +17,12 @@ function resizePanels() { $('iframe').width($(window).width() - $('#sidebar').outerWidth()); - $('iframe').height($(window).height() - 100); - $('#toggle-sidebar').height($(window).height() - 55); - $('#images-wrap').height($(window).height() - 82) + $('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); - $('#sidebar-toolbar').width(480); - resizePanels(); - }, function() { - $('#images-wrap').width(0); - $('#sidebar').width(8); - $('#sidebar-toolbar').width(0); - resizePanels(); - }) - $(window).resize(function() { resizePanels(); }) @@ -89,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(); } @@ -142,14 +129,14 @@ -
- {{ form.user.errors }} {{ form.commit_message.errors }} -

- Użytkownik: {{ form.user }} - Opis zmian: {{ form.commit_message }} - - Nie synchronizuj przewijania -

-
+ {#
#} + {# {{ form.user.errors }} {{ form.commit_message.errors }} #} + {#

#} + {# Użytkownik: {{ form.user }} #} + {# Opis zmian: {{ form.commit_message }} #} + {# #} + {# Nie synchronizuj przewijania #} + {#

#} + {#
#} {% endblock maincontent %}