Resources/public/js/wikiTag.js
changeset 52 e804ae133f27
parent 48 16b5fd8d5405
child 53 22377c9e2eae
--- a/Resources/public/js/wikiTag.js	Thu Dec 01 12:11:10 2011 +0100
+++ b/Resources/public/js/wikiTag.js	Fri Dec 02 11:31:51 2011 +0100
@@ -359,35 +359,6 @@
     });
 }
 
-function wikitag_up_down(arrow)
-{
-    if ($(arrow).is(".up")) {
-        mv = "u";
-    } else {
-        mv = "d";
-    }
-    var url = tag_up_down_url;
-    var id_tag = $(arrow).attr('id');
-    // This indicates the position (from 0) of the tag in the list. NB : it is different from the TagSheet.order in the database.
-    var pos_tag = $(arrow).attr('pos');
-    $.ajax({
-        url: url,
-        type: 'POST',
-        data: {csrfmiddlewaretoken:global_csrf_token, 
-               wikitag_document_id:$('#wikitag_document_id').val(),
-               wikitag_document_profile:$('#wikitag_document_profile').val(),
-               tag_id:id_tag,
-               move:mv,
-               tag_pos:pos_tag
-               },
-        // bug with jquery >= 1.5, "json" adds a callback so we don't specify dataType
-        //dataType: 'json',
-        success: function(msg, textStatus, XMLHttpRequest) {
-            $('#wikitag_table_container').html(msg);
-            wikitag_init_tags_events();
-        }
-    });
-}
 
 function add_tag(tag_label)
 {