From 75493dfb8cfe3b4a329d8255a55fdf9c534f8fbd Mon Sep 17 00:00:00 2001 From: brettp Date: Thu, 24 Feb 2011 14:40:08 +0000 Subject: Fixes #2998. Updated admin JS for dnd plugin reordering with new plugin layout. git-svn-id: http://code.elgg.org/elgg/trunk@8464 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/js/admin.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'views/default') diff --git a/views/default/js/admin.php b/views/default/js/admin.php index c146597e5..a11f51e66 100644 --- a/views/default/js/admin.php +++ b/views/default/js/admin.php @@ -47,9 +47,9 @@ elgg.admin.init = function () { * @return void */ elgg.admin.movePlugin = function(e, ui) { - // get guid from id like elgg-plugin- - var pluginGuid = ui.item.closest('.elgg-plugin').attr('id'); - pluginGuid = pluginGuid.replace('elgg-plugin-', ''); + // get guid from id like elgg-object- + var pluginGuid = ui.item.attr('id'); + pluginGuid = pluginGuid.replace('elgg-object-', ''); elgg.action('admin/plugins/set_priority', { data: { -- cgit v1.2.3