Skróty klawiszowe z Alt zamiast Ctrl. Usunięcie paska statusu.
authorzuber <marek@stepniowski.com>
Fri, 21 Aug 2009 07:57:00 +0000 (09:57 +0200)
committerzuber <marek@stepniowski.com>
Fri, 21 Aug 2009 07:57:00 +0000 (09:57 +0200)
apps/toolbar/templates/toolbar/toolbar.html
project/templates/explorer/file_xml.html

index dcc64a9..c508929 100644 (file)
@@ -10,7 +10,7 @@
         {% for group in groups %}
         <ol id="{{ group.slug }}" {% if not forloop.first %}style="display:none"{% endif %}>
             {% for button in group.button_set.all %}
         {% for group in groups %}
         <ol id="{{ group.slug }}" {% if not forloop.first %}style="display:none"{% endif %}>
             {% for button in group.button_set.all %}
-            <li p:tag="{{ button.tag }}" {% if button.key %}p:key="{{ button.key|keycode }}" title="Ctrl+{{ button.key }}"{% endif %}>{{ button.label }}</li>
+            <li p:tag="{{ button.tag }}" {% if button.key %}p:key="{{ button.key|keycode }}" title="Alt+{{ button.key|upper }}"{% endif %}>{{ button.label }}</li>
             {% endfor %}
         </ol>
         {% endfor %}
             {% endfor %}
         </ol>
         {% endfor %}
index 54583e5..53d536a 100644 (file)
@@ -17,9 +17,9 @@
             
             function resizePanels() {
                 $('iframe').width($(window).width() - $('#sidebar').outerWidth());
             
             function resizePanels() {
                 $('iframe').width($(window).width() - $('#sidebar').outerWidth());
-                $('iframe').height($(window).height() - $('#breadcrumbs').height() - $('toolbar').height());
-                $('#toggle-sidebar').height($(window).height() - $('#breadcrumbs').height());
-                $('#images-wrap').height($(window).height() - $('#breadcrumbs').height() - $('#sidebar-toolbar').height())
+                $('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);
             }
             
@@ -75,7 +75,7 @@
                             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)
                     });
 
                     $('#sidebar').bind('resizable:resize', 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 %}