Skróty klawiszowe z Alt zamiast Ctrl. Usunięcie paska statusu.
[redakcja.git] / project / templates / explorer / file_xml.html
index e4c7371..53d536a 100644 (file)
@@ -2,7 +2,6 @@
 {% load toolbar_tags %}
 
 {% block extrahead %}
 {% load toolbar_tags %}
 
 {% block extrahead %}
-    <script src="/static/js/jquery.fieldselection.js" type="text/javascript" charset="utf-8"></script>
     <script src="/static/js/jquery.lazyload.js" type="text/javascript" charset="utf-8"></script>
     <script src="/static/js/codemirror/codemirror.js" type="text/javascript" charset="utf-8"></script>
     <script src="/static/js/jquery.autoscroll.js" type="text/javascript" charset="utf-8"></script>
     <script src="/static/js/jquery.lazyload.js" type="text/javascript" charset="utf-8"></script>
     <script src="/static/js/codemirror/codemirror.js" type="text/javascript" charset="utf-8"></script>
     <script src="/static/js/jquery.autoscroll.js" type="text/javascript" charset="utf-8"></script>
             
             function resizePanels() {
                 $('iframe').width($(window).width() - $('#sidebar').outerWidth());
             
             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);
             }
             
                 $('#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();
             })
             $(window).resize(function() {
                 resizePanels();
             })
                             keys[event.keyCode]();
                         }
                     }, function(event) {
                             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();
                 }
                     
                     resizePanels();
                 }
             <textarea id="id_text" name="text" width="480px">{{ form.text.field.initial }}</textarea>
         </div>
         
             <textarea id="id_text" name="text" width="480px">{{ form.text.field.initial }}</textarea>
         </div>
         
-        <div id="status-bar">
-            {{ form.user.errors }} {{ form.commit_message.errors }}
-            <p>
-                Użytkownik: {{ form.user }}
-                Opis zmian: {{ form.commit_message }}
-                <input type="submit" value="Zapisz"/>
-                <a href="#" class="toggleAutoscroll" style="float: right">Nie synchronizuj przewijania</a>
-            </p>
-        </div>
+        {# <div id="status-bar"> #}
+        {#     {{ form.user.errors }} {{ form.commit_message.errors }} #}
+        {#     <p> #}
+        {#         Użytkownik: {{ form.user }} #}
+        {#         Opis zmian: {{ form.commit_message }} #}
+        {#         <input type="submit" value="Zapisz"/> #}
+        {#         <a href="#" class="toggleAutoscroll" style="float: right">Nie synchronizuj przewijania</a> #}
+        {#     </p> #}
+        {# </div> #}
     </form>
 {% endblock maincontent %}    
     </form>
 {% endblock maincontent %}