From 18691ef568f3b013ed5d71fa0d998cfc6842071f Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=81ukasz=20Rekucki?= Date: Tue, 25 Aug 2009 13:25:03 +0200 Subject: [PATCH] =?utf8?q?Naprawiony=20b=C5=82=C4=85d=20layout-u.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- lib/hg.py | 4 +--- project/static/js/jquery.hpanel.js | 8 ++++---- project/templates/explorer/file_xml.html | 2 +- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/lib/hg.py b/lib/hg.py index d8b4679a..e785b375 100644 --- 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 - encoding.encoding = 'utf-8' - class RepositoryDoesNotExist(Exception): pass @@ -110,4 +108,4 @@ class Repository(object): # reread keys # self._keys = self.get_persisted_objects_keys() # return node.hex(rev) - \ No newline at end of file + diff --git a/project/static/js/jquery.hpanel.js b/project/static/js/jquery.hpanel.js index 2f917a88..a3e80ece 100644 --- a/project/static/js/jquery.hpanel.js +++ b/project/static/js/jquery.hpanel.js @@ -52,10 +52,9 @@ var prev = null; all_panels.each(function(i) { - var panel = $(all_panels[i]); + var panel = $(this); var handle = $('.panel-slider', panel); - - var overlay = $("

Panel #"+i+"

"); + var overlay = $("

Panel #"+i+"

"); overlay_root.append(overlay); overlay.data('panel', panel); overlay.data('next', null); @@ -67,7 +66,8 @@ 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) { diff --git a/project/templates/explorer/file_xml.html b/project/templates/explorer/file_xml.html index a109f93b..7f910223 100644 --- a/project/templates/explorer/file_xml.html +++ b/project/templates/explorer/file_xml.html @@ -24,7 +24,7 @@
- +
-- 2.20.1