X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/cff00e2705f56b4622bbb3c59629e760a0ffa674..7a3192417060241aa0956762a5e101b5b893d22b:/project/templates/explorer/file_xml.html diff --git a/project/templates/explorer/file_xml.html b/project/templates/explorer/file_xml.html index 719713e6..314c08e3 100644 --- a/project/templates/explorer/file_xml.html +++ b/project/templates/explorer/file_xml.html @@ -24,6 +24,7 @@ $('#toggle-sidebar').toggle(function() { $('#images-wrap').width(480); $('#sidebar').width(488); + $('#images-wrap').data('lazyload:lastCheckedScrollTop', -10000); resizePanels(); }, function() { $('#images-wrap').width(0); @@ -79,11 +80,12 @@ }); editor.grabKeys(function(event) { - console.log('handle', event, event.keyCode) if (keys[event.keyCode]) { keys[event.keyCode](); } - }, function(event) { return event.ctrlKey && event.keyCode != 17; }); + }, function(event) { + return event.ctrlKey && keys[event.keyCode]; + }); resizePanels(); }