aboutsummaryrefslogtreecommitdiff
path: root/mod/thewire/start.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-30 02:07:59 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-30 02:07:59 +0000
commitb472188b1e3fe4ff8a0da791910d12496b1de348 (patch)
tree63cc52ab126372ba532e7c246fe06b5e1364f764 /mod/thewire/start.php
parent030f72d81b76823e4f3b85675beb896b00b6af5d (diff)
downloadelgg-b472188b1e3fe4ff8a0da791910d12496b1de348.tar.gz
elgg-b472188b1e3fe4ff8a0da791910d12496b1de348.tar.bz2
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
Diffstat (limited to 'mod/thewire/start.php')
-rw-r--r--mod/thewire/start.php8
1 files changed, 6 insertions, 2 deletions
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);
}