From 3d9521b372009034219be04825c349d80d9a9929 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 20 Oct 2014 16:54:34 +0100 Subject: [PATCH] dont remove focus from Ox.EditableContent while editing --- static/js/infoView.0xdb.js | 4 +++- static/js/infoView.indiancinema.js | 4 +++- static/js/infoView.js | 4 +++- static/js/infoView.padma.js | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/static/js/infoView.0xdb.js b/static/js/infoView.0xdb.js index 501420d43..6ae1fbf9c 100644 --- a/static/js/infoView.0xdb.js +++ b/static/js/infoView.0xdb.js @@ -1156,7 +1156,9 @@ pandora.ui.infoView = function(data) { that.bindEvent({ mousedown: function() { - that.gainFocus() + setTimeout(function() { + !Ox.Focus.focusedElementIsInput() && that.gainFocus(); + }); }, pandora_icons: that.reload, pandora_showsiteposters: function() { diff --git a/static/js/infoView.indiancinema.js b/static/js/infoView.indiancinema.js index ee53327a1..3fe9c1408 100644 --- a/static/js/infoView.indiancinema.js +++ b/static/js/infoView.indiancinema.js @@ -1059,7 +1059,9 @@ pandora.ui.infoView = function(data) { that.bindEvent({ mousedown: function() { - that.gainFocus() + setTimeout(function() { + !Ox.Focus.focusedElementIsInput() && that.gainFocus(); + }); }, pandora_icons: that.reload, pandora_showsiteposters: function() { diff --git a/static/js/infoView.js b/static/js/infoView.js index 24b21a894..1a9150060 100644 --- a/static/js/infoView.js +++ b/static/js/infoView.js @@ -634,7 +634,9 @@ pandora.ui.infoView = function(data) { that.bindEvent({ mousedown: function() { - that.gainFocus() + setTimeout(function() { + !Ox.Focus.focusedElementIsInput() && that.gainFocus(); + }); }, pandora_icons: that.reload, pandora_showsiteposters: function() { diff --git a/static/js/infoView.padma.js b/static/js/infoView.padma.js index f5bb03f8a..60d58d813 100644 --- a/static/js/infoView.padma.js +++ b/static/js/infoView.padma.js @@ -813,7 +813,9 @@ pandora.ui.infoView = function(data) { that.bindEvent({ mousedown: function() { - that.gainFocus() + setTimeout(function() { + !Ox.Focus.focusedElementIsInput() && that.gainFocus(); + }); }, pandora_icons: that.reload, pandora_showsiteposters: function() {