From: Łukasz Rekucki Date: Tue, 25 Aug 2009 11:25:03 +0000 (+0200) Subject: Naprawiony błąd layout-u. X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/18691ef568f3b013ed5d71fa0d998cfc6842071f?ds=inline Naprawiony błąd layout-u. --- 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 @@
- +