From b472188b1e3fe4ff8a0da791910d12496b1de348 Mon Sep 17 00:00:00 2001 From: cash Date: Wed, 30 Mar 2011 02:07:59 +0000 Subject: Fixes #3200 ajax-based view previous link works for the wire git-svn-id: http://code.elgg.org/elgg/trunk@8882 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/thewire/start.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'mod/thewire/start.php') diff --git a/mod/thewire/start.php b/mod/thewire/start.php index 0c35b0231..770f8bce0 100644 --- a/mod/thewire/start.php +++ b/mod/thewire/start.php @@ -23,8 +23,10 @@ function thewire_init() { if (!update_subtype('object', 'thewire', 'ElggWire')) { add_subtype('object', 'thewire', 'ElggWire'); } - - elgg_register_js('elgg.thewire', 'mod/thewire/js/thewire.js', 'footer'); + + // register the wire's JavaScript + $thewire_js = elgg_get_simplecache_url('js', 'thewire'); + elgg_register_js('elgg.thewire', $thewire_js, 'footer'); // add a site navigation item $item = new ElggMenuItem('thewire', elgg_echo('thewire'), 'thewire/all'); @@ -400,6 +402,8 @@ function thewire_setup_entity_menu_items($hook, $type, $value, $params) { 'text' => elgg_echo('thewire:previous'), 'href' => "thewire/previous/$entity->guid", 'priority' => 160, + 'class' => 'thewire-previous', + 'title' => elgg_echo('thewire:previous:help'), ); $value[] = ElggMenuItem::factory($options); } -- cgit v1.2.3