From f984748ffe4d59b436847017100197b7239a8b14 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 24 Sep 2014 22:54:45 +0200 Subject: [PATCH] infoView should gain focus on mousedown, fixes #2491 --- static/js/infoView.0xdb.js | 3 +++ static/js/infoView.indiancinema.js | 3 +++ static/js/infoView.js | 3 +++ static/js/infoView.padma.js | 3 +++ 4 files changed, 12 insertions(+) diff --git a/static/js/infoView.0xdb.js b/static/js/infoView.0xdb.js index 393dd7c2f..501420d43 100644 --- a/static/js/infoView.0xdb.js +++ b/static/js/infoView.0xdb.js @@ -1155,6 +1155,9 @@ pandora.ui.infoView = function(data) { }; that.bindEvent({ + mousedown: function() { + that.gainFocus() + }, pandora_icons: that.reload, pandora_showsiteposters: function() { ui.icons == 'posters' && that.reload(); diff --git a/static/js/infoView.indiancinema.js b/static/js/infoView.indiancinema.js index ee37aef06..ce6c2dc1e 100644 --- a/static/js/infoView.indiancinema.js +++ b/static/js/infoView.indiancinema.js @@ -1054,6 +1054,9 @@ pandora.ui.infoView = function(data) { }; that.bindEvent({ + mousedown: function() { + that.gainFocus() + }, pandora_icons: that.reload, pandora_showsiteposters: function() { ui.icons == 'posters' && that.reload(); diff --git a/static/js/infoView.js b/static/js/infoView.js index 90d782150..24b21a894 100644 --- a/static/js/infoView.js +++ b/static/js/infoView.js @@ -633,6 +633,9 @@ pandora.ui.infoView = function(data) { }; that.bindEvent({ + mousedown: function() { + that.gainFocus() + }, pandora_icons: that.reload, pandora_showsiteposters: function() { ui.icons == 'posters' && that.reload(); diff --git a/static/js/infoView.padma.js b/static/js/infoView.padma.js index 770cc867e..13547ac1b 100644 --- a/static/js/infoView.padma.js +++ b/static/js/infoView.padma.js @@ -784,6 +784,9 @@ pandora.ui.infoView = function(data) { }; that.bindEvent({ + mousedown: function() { + that.gainFocus() + }, pandora_icons: that.reload, pandora_showsiteposters: function() { ui.icons == 'posters' && that.reload();