aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod/blog/lib/blog.php3
-rw-r--r--mod/blog/start.php1
-rw-r--r--mod/notifications/index.php4
-rw-r--r--mod/thewire/start.php1
-rw-r--r--mod/tinymce/start.php1
5 files changed, 3 insertions, 7 deletions
diff --git a/mod/blog/lib/blog.php b/mod/blog/lib/blog.php
index 41924f336..792f32c42 100644
--- a/mod/blog/lib/blog.php
+++ b/mod/blog/lib/blog.php
@@ -317,9 +317,6 @@ function blog_get_page_content_edit($page, $guid = 0, $revision = NULL) {
$title = elgg_echo('blog:add');
$content = elgg_view_form('blog/save', $vars, $body_vars);
-
- $blog_js = elgg_get_simplecache_url('js', 'blog/save_draft');
- elgg_register_js('elgg.blog', $blog_js);
}
$return['title'] = $title;
diff --git a/mod/blog/start.php b/mod/blog/start.php
index 2d8f75ed2..9e77b0a93 100644
--- a/mod/blog/start.php
+++ b/mod/blog/start.php
@@ -32,6 +32,7 @@ function blog_init() {
// register the blog's JavaScript
$blog_js = elgg_get_simplecache_url('js', 'blog/save_draft');
+ elgg_register_simplecache_view('js/blog/save_draft');
elgg_register_js('elgg.blog', $blog_js);
// routing of urls
diff --git a/mod/notifications/index.php b/mod/notifications/index.php
index b54677681..e56042b73 100644
--- a/mod/notifications/index.php
+++ b/mod/notifications/index.php
@@ -14,10 +14,6 @@ gatekeeper();
elgg_set_page_owner_guid(elgg_get_logged_in_user_guid());
$user = elgg_get_page_owner_guid();
-$js_url = elgg_get_simplecache_url('js', 'friendsPickerv1');
-elgg_register_js('friendsPickerv1', $js_url);
-elgg_load_js('friendsPickerv1');
-
// Set the context to settings
elgg_set_context('settings');
diff --git a/mod/thewire/start.php b/mod/thewire/start.php
index 9d3993b6f..d5e995359 100644
--- a/mod/thewire/start.php
+++ b/mod/thewire/start.php
@@ -26,6 +26,7 @@ function thewire_init() {
// register the wire's JavaScript
$thewire_js = elgg_get_simplecache_url('js', 'thewire');
+ elgg_register_simplecache_view('js/thewire');
elgg_register_js('elgg.thewire', $thewire_js, 'footer');
// add a site navigation item
diff --git a/mod/tinymce/start.php b/mod/tinymce/start.php
index ee7154d22..48625f456 100644
--- a/mod/tinymce/start.php
+++ b/mod/tinymce/start.php
@@ -13,6 +13,7 @@ function tinymce_init() {
elgg_register_js('tinymce', 'mod/tinymce/vendor/tinymce/jscripts/tiny_mce/tiny_mce.js');
elgg_register_js('elgg.tinymce', elgg_get_simplecache_url('js', 'tinymce'));
+ elgg_register_simplecache_view('js/tinymce');
elgg_extend_view('input/longtext', 'tinymce/init');