aboutsummaryrefslogtreecommitdiff
path: root/views/default/js/admin.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/js/admin.php')
-rw-r--r--views/default/js/admin.php6
1 files changed, 3 insertions, 3 deletions
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-<guid>
- var pluginGuid = ui.item.closest('.elgg-plugin').attr('id');
- pluginGuid = pluginGuid.replace('elgg-plugin-', '');
+ // get guid from id like elgg-object-<guid>
+ var pluginGuid = ui.item.attr('id');
+ pluginGuid = pluginGuid.replace('elgg-object-', '');
elgg.action('admin/plugins/set_priority', {
data: {