fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
80ba576
)
Nothing interesting.
author
Lukasz Rekucki
<lreqc@localhost.(none)>
Sun, 23 Aug 2009 11:16:50 +0000
(13:16 +0200)
committer
Lukasz Rekucki
<lreqc@localhost.(none)>
Sun, 23 Aug 2009 11:16:50 +0000
(13:16 +0200)
project/static/js/jquery.hpanel.js
patch
|
blob
|
history
diff --git
a/project/static/js/jquery.hpanel.js
b/project/static/js/jquery.hpanel.js
index
ec8c1e7
..
bd75e9c
100644
(file)
--- a/
project/static/js/jquery.hpanel.js
+++ b/
project/static/js/jquery.hpanel.js
@@
-8,14
+8,13
@@
console.log('Panel ' + mydata.panel.attr('id') + ' started resizing');
$(document).bind('mousemove', mydata, $.hpanel.resize_changed).
bind('mouseup', mydata, $.hpanel.resize_stop);
console.log('Panel ' + mydata.panel.attr('id') + ' started resizing');
$(document).bind('mousemove', mydata, $.hpanel.resize_changed).
bind('mouseup', mydata, $.hpanel.resize_stop);
+ $('iframe').bind('mousemove', mydata, $.hpanel.resize_changed).
+ bind('mouseup', mydata, $.hpanel.resize_stop);
return false;
},
resize_changed: function(event) {
var old_width = parseInt(event.data.panel.css('width'));
var delta = event.pageX + event.data.hotspot_x - old_width;
return false;
},
resize_changed: function(event) {
var old_width = parseInt(event.data.panel.css('width'));
var delta = event.pageX + event.data.hotspot_x - old_width;
-
- console.log('o: ' + (old_width) + ' pX: ' + event.pageX + ' hX: ' + event.data.hotspot_x);
- console.log('next_panel: ' + $(event.data.panel.next_panel).attr('id'));
event.data.panel.css({'width': old_width + delta});
if(event.data.panel.next_panel) {
event.data.panel.css({'width': old_width + delta});
if(event.data.panel.next_panel) {
@@
-28,6
+27,7
@@
},
resize_stop: function(event) {
$(document).unbind('mousemove', $.hpanel.resize_changed).unbind('mouseup', $.hpanel.resize_stop);
},
resize_stop: function(event) {
$(document).unbind('mousemove', $.hpanel.resize_changed).unbind('mouseup', $.hpanel.resize_stop);
+ $('iframe').unbind('mousemove', $.hpanel.resize_changed).unbind('mouseup', $.hpanel.resize_stop);
$('body').css('cursor', 'auto');
}
};
$('body').css('cursor', 'auto');
}
};