allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [1/6] git commit: [#7213] ticket:553 Fixed page reload bug with "Reply" and "Edit" buttons for IE11
Date Thu, 27 Mar 2014 21:41:25 GMT
Repository: allura
Updated Branches:
  refs/heads/master b9d05c90c -> e2780d6e0


[#7213] ticket:553 Fixed page reload bug with "Reply" and "Edit" buttons for IE11


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/e4c0458f
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/e4c0458f
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/e4c0458f

Branch: refs/heads/master
Commit: e4c0458f31be4815d94e2c7bdf334391a38921b2
Parents: b9d05c9
Author: Ferens Dmitriy <ferensdima@gmail.com>
Authored: Wed Mar 5 23:09:44 2014 +0200
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Thu Mar 27 21:29:43 2014 +0000

----------------------------------------------------------------------
 Allura/allura/lib/widgets/discuss.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/e4c0458f/Allura/allura/lib/widgets/discuss.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/widgets/discuss.py b/Allura/allura/lib/widgets/discuss.py
index 58e2740..3fe8f6c 100644
--- a/Allura/allura/lib/widgets/discuss.py
+++ b/Allura/allura/lib/widgets/discuss.py
@@ -351,7 +351,9 @@ class Post(HierWidget):
                     $('a.edit_post', post).click(function (ele) {
                         $('.display_post', post).hide();
                         $('.edit_post_form', post).show();
-                        $('.edit_post_form textarea', post).focus();
+                        // Calling jQuery's ".focus()" forces browser to reload page
+                        // while using IE11 with sourceforge theme
+                        $('.edit_post_form textarea', post)[0].focus();
                         return false;
                     });
                     $("a.cancel_edit_post", post).click(function(evt){
@@ -362,7 +364,9 @@ class Post(HierWidget):
                 if($('.reply_post', post)){
                     $('.reply_post', post).click(function (ele) {
                         $('.reply_post_form', post).show();
-                        $('.reply_post_form textarea', post).focus();
+                        // Calling jQuery's ".focus()" forces browser to reload page
+                        // while using IE11 with sourceforge theme
+                        $('.reply_post_form textarea', post)[0].focus();
                         return false;
                     });
                     $('.reply_post', post).button();


Mime
View raw message