Wyłapywanie tylko znanych skrótów klawiszowych.
[redakcja.git] / project / templates / explorer / file_xml.html
index 1f074fc..727dc12 100644 (file)
@@ -6,6 +6,7 @@
     <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>
+    <script src="/static/js/jquery.wtooltip.js" type="text/javascript" charset="utf-8"></script>
     <script type="text/javascript" charset="utf-8">        
         $(function() {
             $('#id_folders').change(function() {
     <script type="text/javascript" charset="utf-8">        
         $(function() {
             $('#id_folders').change(function() {
                         if (keys[event.keyCode]) {
                             keys[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();
                 }
             });
             
 
                     resizePanels();
                 }
             });
             
+            $('#toolbar-buttons li').wTooltip({
+                delay: 1000, 
+                style: {
+                    border: "1px solid #7F7D67",
+                    opacity: 0.9, 
+                    background: "#FBFBC6", 
+                    padding: "1px",
+                    fontSize: "12px",
+                }});
+            
             $('#images-wrap').lazyload('.image-box', {threshold: 640 * 10, scrollTreshold: 640 * 5});
         });
 
             $('#images-wrap').lazyload('.image-box', {threshold: 640 * 10, scrollTreshold: 640 * 5});
         });