aboutsummaryrefslogtreecommitdiff
path: root/views/default/object/plugin
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-06-09 19:17:43 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-06-09 19:17:43 +0000
commitb2ac9d066412a94a35492eaa118461268385f762 (patch)
treee072880619182161142bcd9814e12dd6e6570482 /views/default/object/plugin
parent727ba0b25e7b5737dcffb3061b96dba5f1a7f034 (diff)
downloadelgg-b2ac9d066412a94a35492eaa118461268385f762.tar.gz
elgg-b2ac9d066412a94a35492eaa118461268385f762.tar.bz2
Refs #2871 also turning off dragging when not in priority order
git-svn-id: http://code.elgg.org/elgg/trunk@9155 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/object/plugin')
-rw-r--r--views/default/object/plugin/advanced.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/views/default/object/plugin/advanced.php b/views/default/object/plugin/advanced.php
index 21c99f619..51fb69d17 100644
--- a/views/default/object/plugin/advanced.php
+++ b/views/default/object/plugin/advanced.php
@@ -29,6 +29,8 @@ $token = generate_action_token($ts);
$links = '';
if ($reordering) {
+ $draggable = 'elgg-state-draggable';
+
// top and up link only if not at top
if ($priority > 1) {
$top_url = elgg_http_add_url_query_elements($actions_base . 'set_priority', array(
@@ -82,8 +84,11 @@ if ($reordering) {
'is_action' => true
)) . "</li>";
}
+} else {
+ $draggable = 'elgg-state-undraggable';
}
+
// activate / deactivate links
// always let them deactivate
@@ -184,7 +189,7 @@ if ($files) {
?>
-<div class="elgg-state-draggable elgg-plugin <?php echo $active_class ?>" id="elgg-plugin-<?php echo $plugin->guid; ?>">
+<div class="<?php echo $draggable; ?> elgg-plugin <?php echo $active_class ?>" id="elgg-plugin-<?php echo $plugin->guid; ?>">
<div class="elgg-image-block">
<div class="elgg-image-alt">
<?php if ($links) : ?>