You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2013/06/10 14:04:01 UTC
git commit: WICKET-5222 Direct iframe removal not supported by
Firefox: tab title stays as "Connecting"
Updated Branches:
refs/heads/master 35297acfa -> cf850c372
WICKET-5222 Direct iframe removal not supported by Firefox: tab title stays as "Connecting"
Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/cf850c37
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/cf850c37
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/cf850c37
Branch: refs/heads/master
Commit: cf850c372e03e45525070222bb09f7f11d93358d
Parents: 35297ac
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Mon Jun 10 15:03:41 2013 +0300
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Mon Jun 10 15:03:41 2013 +0300
----------------------------------------------------------------------
.../java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/wicket/blob/cf850c37/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js b/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js
index 30b7364..347f319 100644
--- a/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js
+++ b/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js
@@ -864,8 +864,10 @@
context.steps.push(jQuery.proxy(function(notify) {
// remove the iframe and button elements
- jQuery('#'+iframe.id + '-btn').remove();
- jQuery(iframe).remove();
+ setTimeout(function() {
+ jQuery('#'+iframe.id + '-btn').remove();
+ jQuery(iframe).remove();
+ }, 0);
var attrs = context.attrs;
if (attrs.i) {