You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by jo...@apache.org on 2014/01/23 18:30:46 UTC

[4/9] git commit: [#4257] More IE hacks to avoid Access Denied

[#4257] More IE hacks to avoid Access Denied

Signed-off-by: Cory Johns <cj...@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/e276acfa
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/e276acfa
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/e276acfa

Branch: refs/heads/master
Commit: e276acfa3a48acb28862af6213c8284ba4331d44
Parents: de4f5b7
Author: Cory Johns <cj...@slashdotmedia.com>
Authored: Wed Jan 22 21:34:56 2014 +0000
Committer: Cory Johns <cj...@slashdotmedia.com>
Committed: Thu Jan 23 17:28:04 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/e276acfa/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() {