import codecs
from mercurial import localrepo, ui, error, match, node, encoding
-
encoding.encoding = 'utf-8'
-
class RepositoryDoesNotExist(Exception):
pass
# reread keys
# self._keys = self.get_persisted_objects_keys()
# return node.hex(rev)
-
\ No newline at end of file
+
var prev = null;
all_panels.each(function(i) {
- var panel = $(all_panels[i]);
+ var panel = $(this);
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);
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) {
<strong class="change-notification" style="display: none">Zmieniono!</strong>
</div>
<div id="left-panel-content" class="panel-content"></div>
- <button class="panel-slider"> </button>
+ <button class="panel-slider" id="slider01"> </button>
</div>
<div id="right-panel-wrap" class="panel-wrap last-panel">
<div id="right-panel-toolbar" class="panel-toolbar">