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/22 22:35:11 UTC
git commit: [#4257] More IE hacks to avoid Access Denied
Updated Branches:
refs/heads/cj/4257 2b3a9981a -> 7196f9a06
[#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/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 <cj...@slashdotmedia.com>
Authored: Wed Jan 22 21:34:56 2014 +0000
Committer: Cory Johns <cj...@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() {