]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Refs #2871 also turning off dragging when not in priority order
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 9 Jun 2011 19:17:43 +0000 (19:17 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 9 Jun 2011 19:17:43 +0000 (19:17 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@9155 36083f99-b078-4883-b0ff-0f9b5a30f544

views/default/object/plugin/advanced.php

index 21c99f61940fbfb40b54ce6bc0e68c2395a58e9a..51fb69d173d78549cd23d8f0069bd0371761831a 100644 (file)
@@ -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) : ?>