fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ładowanie paneli. Pozostaje jeszcze jeden błąd: Usuwanie z URLi niepotrzebnych kawałków.
[redakcja.git]
/
project
/
static
/
js
/
jquery.hpanel.js
diff --git
a/project/static/js/jquery.hpanel.js
b/project/static/js/jquery.hpanel.js
index
2f917a8
..
abb7a5b
100644
(file)
--- a/
project/static/js/jquery.hpanel.js
+++ b/
project/static/js/jquery.hpanel.js
@@
-35,8
+35,8
@@
$(this).data('panel').css({
'left': $(this).css('left'), 'width': $(this).css('width')});
});
$(this).data('panel').css({
'left': $(this).css('left'), 'width': $(this).css('width')});
});
-
$('.panel-overlay', event.data.root).css('display', 'none');
$('.panel-overlay', event.data.root).css('display', 'none');
+ $(event.data.root).trigger('stopResize');
}
};
}
};
@@
-52,10
+52,9
@@
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) {