Naprawiony błąd layout-u.
authorŁukasz Rekucki <lrekucki@gmail.com>
Tue, 25 Aug 2009 11:25:03 +0000 (13:25 +0200)
committerŁukasz Rekucki <lrekucki@gmail.com>
Tue, 25 Aug 2009 11:25:03 +0000 (13:25 +0200)
lib/hg.py
project/static/js/jquery.hpanel.js
project/templates/explorer/file_xml.html

index d8b4679..e785b37 100644 (file)
--- a/lib/hg.py
+++ b/lib/hg.py
@@ -3,10 +3,8 @@ import os
 import codecs
 from mercurial import localrepo, ui, error, match, node, encoding
 
 import codecs
 from mercurial import localrepo, ui, error, match, node, encoding
 
-
 encoding.encoding = 'utf-8'
 
 encoding.encoding = 'utf-8'
 
-
 class RepositoryDoesNotExist(Exception):
     pass
 
 class RepositoryDoesNotExist(Exception):
     pass
 
@@ -110,4 +108,4 @@ class Repository(object):
             # reread keys
             # self._keys = self.get_persisted_objects_keys()
             # return node.hex(rev)
             # reread keys
             # self._keys = self.get_persisted_objects_keys()
             # return node.hex(rev)
-            
\ No newline at end of file
+            
index 2f917a8..a3e80ec 100644 (file)
                var prev = null;
 
                all_panels.each(function(i) {
                var prev = null;
 
                all_panels.each(function(i) {
-                       var panel = $(all_panels[i]);
+                       var panel = $(this);
                        var handle = $('.panel-slider', panel);
                        var handle = $('.panel-slider', panel);
-
-                       var overlay     = $("<div class='panel-content-overlay panel-wrap'><p>Panel #"+i+"</p></div>");
+                       var overlay = $("<div class='panel-content-overlay panel-wrap'><p>Panel #"+i+"</p></div>");
                        overlay_root.append(overlay);
                        overlay.data('panel', panel);
                        overlay.data('next', null);
                        overlay_root.append(overlay);
                        overlay.data('panel', panel);
                        overlay.data('next', null);
@@ -67,7 +66,8 @@
 
                        if (prev) prev.next = overlay;
 
 
                        if (prev) prev.next = overlay;
 
-                       if(handle) {
+                       if(handle.length != 0) {
+                               $.log('Has handle: ' + panel.attr('id') );
                                overlay.append(handle.clone());
                                /* attach the trigger */
                                handle.mousedown(function(event) {
                                overlay.append(handle.clone());
                                /* attach the trigger */
                                handle.mousedown(function(event) {
index a109f93..7f91022 100644 (file)
@@ -24,7 +24,7 @@
                     <strong class="change-notification" style="display: none">Zmieniono!</strong>
                </div>
                <div id="left-panel-content" class="panel-content"></div>
                     <strong class="change-notification" style="display: none">Zmieniono!</strong>
                </div>
                <div id="left-panel-content" class="panel-content"></div>
-               <button class="panel-slider">&nbsp;</button>
+               <button class="panel-slider" id="slider01">&nbsp;</button>
             </div>
             <div id="right-panel-wrap" class="panel-wrap last-panel">
                 <div id="right-panel-toolbar" class="panel-toolbar">
             </div>
             <div id="right-panel-wrap" class="panel-wrap last-panel">
                 <div id="right-panel-toolbar" class="panel-toolbar">