From 5ab1a4b33049e076104511ac9c5c0e6cb7cef033 Mon Sep 17 00:00:00 2001 From: ewinslow Date: Wed, 23 Feb 2011 19:28:45 +0000 Subject: Simplify registration of jeditable library git-svn-id: http://code.elgg.org/elgg/trunk@8450 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/admin.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'engine/lib') diff --git a/engine/lib/admin.php b/engine/lib/admin.php index 564c1225b..d4ebbdd0d 100644 --- a/engine/lib/admin.php +++ b/engine/lib/admin.php @@ -283,8 +283,7 @@ function admin_settings_page_handler($page) { $url = elgg_get_simplecache_url('js', 'admin'); elgg_register_js($url, 'admin'); - $url = elgg_get_site_url() . 'vendors/jquery/jquery.jeditable.mini.js'; - elgg_register_js($url); + elgg_register_js('vendors/jquery/jquery.jeditable.mini.js', 'jquery.jeditable'); // default to dashboard if (!isset($page[0]) || empty($page[0])) { -- cgit v1.2.3