summaryrefslogtreecommitdiff
path: root/addons/web/static/lib
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2014-03-05 11:59:22 +0100
committerThibault Delavallée <tde@openerp.com>2014-03-05 11:59:22 +0100
commit5c45aac7ef9df8f2f0d2aeb213813a99dfb2a8c7 (patch)
tree2906a27802df856adcad5ef1a221dc75a6de5856 /addons/web/static/lib
parentcc23ddd0cec62342d538c17140840f7dda569d0b (diff)
[IMP] [MONKEY] Re-apply changes introduced at version 3755.
This commit was a forward-pord of saas-1 commits. Commit by msh [FIX]Fixed the issue of cleditor, on window resize blur event not triggered except firefox so due to which value disappears from the container. bzr revid: tde@openerp.com-20140305105922-cqw9vrvk306jynco
Diffstat (limited to 'addons/web/static/lib')
-rw-r--r--addons/web/static/lib/cleditor/jquery.cleditor.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/addons/web/static/lib/cleditor/jquery.cleditor.js b/addons/web/static/lib/cleditor/jquery.cleditor.js
index e11d1b15986..cf98288d6c6 100644
--- a/addons/web/static/lib/cleditor/jquery.cleditor.js
+++ b/addons/web/static/lib/cleditor/jquery.cleditor.js
@@ -307,6 +307,11 @@
// Bind the window resize event when the width or height is auto or %
if (/auto|%/.test("" + options.width + options.height))
$(window).bind('resize.cleditor', function () {
+ //Forcefully blurred iframe contentWindow, chrome, IE, safari doesn't trigger blur on window resize and due to which text disappears
+ var contentWindow = editor.$frame[0].contentWindow;
+ if(!$.browser.mozilla && contentWindow){
+ $(contentWindow).trigger('blur');
+ }
// CHM Note MonkeyPatch: if the DOM is not remove, refresh the cleditor
if(editor.$main.parent().parent().size()) {
refresh(editor);