fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixes #2688
[redakcja.git]
/
redakcja
/
static
/
js
/
wiki
/
view_editor_wysiwyg.js
diff --git
a/redakcja/static/js/wiki/view_editor_wysiwyg.js
b/redakcja/static/js/wiki/view_editor_wysiwyg.js
index
cb7c40f
..
c08945c
100644
(file)
--- a/
redakcja/static/js/wiki/view_editor_wysiwyg.js
+++ b/
redakcja/static/js/wiki/view_editor_wysiwyg.js
@@
-413,13
+413,14
@@
});
$overlay.append($attributes);
});
$overlay.append($attributes);
+ var overlayParent = $box[0].offsetParent || $box.parent();
$overlay.css({
position: 'absolute',
height: h,
left: x,
top: y,
width: w
$overlay.css({
position: 'absolute',
height: h,
left: x,
top: y,
width: w
- }).appendTo(
$box[0].offsetParent || $box.parent()
).show();
+ }).appendTo(
overlayParent
).show();
if ($origin.is('.motyw')) {
if ($origin.is('.motyw')) {
@@
-498,7
+499,7
@@
}
/* Set attributres back to the node */
var attrs = {};
}
/* Set attributres back to the node */
var attrs = {};
- $(".html-editarea-attributes [name]")
+ $(".html-editarea-attributes [name]"
, overlayParent
)
.each(function(i, textField) {
attrs[textField.name] = textField.value;
});
.each(function(i, textField) {
attrs[textField.name] = textField.value;
});
@@
-564,6
+565,7
@@
$('.accept-button', $overlay).click(function(){
save();
$('.accept-button', $overlay).click(function(){
save();
+ $(document).unbind('click.blur-overlay');
});
$(document).bind('click.blur-overlay', function(event){
});
$(document).bind('click.blur-overlay', function(event){