summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2016-03-29 09:39:34 +0200
committerFabio Bas <ctrlaltca@gmail.com>2016-03-29 09:39:34 +0200
commit98d37be0f614da4e1fb73e2ee3bb5bea437bcb5f (patch)
treebc62bdb33a25a73b65b5870ce7d64fce34aa3c8a /framework
parent70e305a918fcf193009831d4e89aa8c386df3dc4 (diff)
Js: Prado.Element.focus: wait for all callbacks to finish before focusing the element
Diffstat (limited to 'framework')
-rw-r--r--framework/Web/Javascripts/source/prado/prado.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/framework/Web/Javascripts/source/prado/prado.js b/framework/Web/Javascripts/source/prado/prado.js
index 793326b0..0a1c485d 100644
--- a/framework/Web/Javascripts/source/prado/prado.js
+++ b/framework/Web/Javascripts/source/prado/prado.js
@@ -446,7 +446,11 @@ Prado.Element =
focus : function(element)
{
- setTimeout(function(){ jQuery("#"+element).focus(); }, 100);
+ jQuery(document).ajaxStop(function () {
+ setTimeout(function(){
+ jQuery("#"+element).focus();
+ }, 100);
+ });
},
/**