allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject git commit: [#4257] More IE hacks to avoid Access Denied
Date Wed, 22 Jan 2014 21:35:11 GMT
Updated Branches:
  refs/heads/cj/4257 2b3a9981a -> 7196f9a06


[#4257] More IE hacks to avoid Access Denied

Signed-off-by: Cory Johns <cjohns@slashdotmedia.com>


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

Branch: refs/heads/cj/4257
Commit: 7196f9a06650cc3e919f2e0161a72ecc1683e16f
Parents: 2b3a998
Author: Cory Johns <cjohns@slashdotmedia.com>
Authored: Wed Jan 22 21:34:56 2014 +0000
Committer: Cory Johns <cjohns@slashdotmedia.com>
Committed: Wed Jan 22 21:34:56 2014 +0000

----------------------------------------------------------------------
 ForgeActivity/forgeactivity/nf/activity/js/activity.js | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/7196f9a0/ForgeActivity/forgeactivity/nf/activity/js/activity.js
----------------------------------------------------------------------
diff --git a/ForgeActivity/forgeactivity/nf/activity/js/activity.js b/ForgeActivity/forgeactivity/nf/activity/js/activity.js
index 0ed3b0e..ad835d2 100644
--- a/ForgeActivity/forgeactivity/nf/activity/js/activity.js
+++ b/ForgeActivity/forgeactivity/nf/activity/js/activity.js
@@ -210,14 +210,14 @@ $(function() {
     }
 
     function makeShowMoreLink(newer, targetPage) {
-        var $link = $('<a class="show-more">Show More</a>');
-        $link.addClass(newer ? 'newer' : 'older');
-        $link.attr('href', makePageUrl(targetPage));
-        $link.click(function(event) {
+        var cls = newer ? 'newer' : 'older';
+        var url = makePageUrl(targetPage);
+        var link = '<a class="show-more '+cls+'" href="'+url+'">Show More</a>';
+        $('.timeline')[newer ? 'before' : 'after'](link);
+        $('.show-more.'+cls).click(function(event) {
             event.preventDefault();
             pageIn(newer, this.href);
         });
-        $('.timeline')[newer ? 'before' : 'after']($link);
     }
 
     function updateShowMore() {


Mime
View raw message