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 501420d4..6ae1fbf9 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 ee53327a..3fe9c140 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 24b21a89..1a915006 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 f5bb03f8..60d58d81 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() {