fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
FIX: Skrypt jquery.loggin.js nie działał w Safari 4.
[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
d33e47f
..
a3e80ec
100644
(file)
--- a/
project/static/js/jquery.hpanel.js
+++ b/
project/static/js/jquery.hpanel.js
@@
-5,7
+5,6
@@
settings: {},
current_data: {},
resize_start: function(event, mydata) {
settings: {},
current_data: {},
resize_start: function(event, mydata) {
- $.log('Overlay: ' + mydata.overlay);
$(document).bind('mousemove', mydata, $.hpanel.resize_changed).
bind('mouseup', mydata, $.hpanel.resize_stop);
$(document).bind('mousemove', mydata, $.hpanel.resize_changed).
bind('mouseup', mydata, $.hpanel.resize_stop);
@@
-43,10
+42,8
@@
$.fn.makeHorizPanel = function(options)
{
$.fn.makeHorizPanel = function(options)
{
- $.log('Making an hpanel out of "#' + $(this).attr('id') + '"');
var root = $(this)
var all_panels = $('.panel-wrap', root)
var root = $(this)
var all_panels = $('.panel-wrap', root)
- $.log('Panels: ' + all_panels);
/* create an overlay */
var overlay_root = $("<div class='panel-overlay'></div>");
/* create an overlay */
var overlay_root = $("<div class='panel-overlay'></div>");
@@
-55,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);
@@
-70,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) {