allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [4/6] git commit: [#7213] ticket:553 Fixed "Add attachments" button on new ticket's page for IE11
Date Thu, 27 Mar 2014 21:41:28 GMT
[#7213] ticket:553 Fixed "Add attachments" button on new ticket's page for IE11


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

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

----------------------------------------------------------------------
 ForgeTracker/forgetracker/widgets/ticket_form.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/96880199/ForgeTracker/forgetracker/widgets/ticket_form.py
----------------------------------------------------------------------
diff --git a/ForgeTracker/forgetracker/widgets/ticket_form.py b/ForgeTracker/forgetracker/widgets/ticket_form.py
index 0a0d816..677dd2a 100644
--- a/ForgeTracker/forgetracker/widgets/ticket_form.py
+++ b/ForgeTracker/forgetracker/widgets/ticket_form.py
@@ -149,7 +149,9 @@ class TicketForm(GenericTicketForm):
         for r in super(TicketForm, self).resources():
             yield r
         yield ew.JSScript('''
-        $(function(){
+        // Sometimes IE11 is not firing jQuery's ready callbacks like
+        // "$(function(){...})" or "$(document).ready(function(){...});"
+        $(window).load(function(){
             $('#show_attach').click(function(evt) {
                 $('#view_attach').show();
                 $('#show_attach').hide();


Mime
View raw message