]> git.openstreetmap.org Git - osqa.git/commitdiff
Fix in the retag template.
authorhernani <hernani@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Fri, 22 Apr 2011 14:42:12 +0000 (14:42 +0000)
committerhernani <hernani@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Fri, 22 Apr 2011 14:42:12 +0000 (14:42 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@997 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/skins/default/templates/question_retag.html

index f0da4ff1999e805ba6cf44ad35d0e0425b7d7b59..6a5266c68f0830540fc6447b874df8e7c8c84643 100644 (file)
@@ -7,44 +7,26 @@
         <script type="text/javascript">
         
         $().ready(function(){
-            $("#nav_questions").attr('className',"on");
-            //Tags autocomplete action
-               $("#id_tags").autocomplete("{% url matching_tags %}", {
-                minChars: 1,
+            $("#id_tags").autocomplete("{% url matching_tags %}", {
                        matchContains: true,
                 max: 20,
                 multiple: true,
                 multipleSeparator: " ",
+                highlightItem: true,
+                scroll: true,
+                scrollHeight: 300,
                        /*formatItem: function(row, i, max) {
                                return row.n + " ("+ row.c +")";
                        },
                 formatResult: function(row, i, max){
                     return row.n;
-                } */
+                }*/
                 formatItem: function(row, i, max, value) {
                     return row[1] + " (" + row[2] + ")";
                 },
 
                 formatResult: function(row, i, max, value){
-                    return row[0];
-                }
-                
-            });
-           
-             $("#fmretag").validate({
-                rules: {
-                               tags: {
-                                       required: true,
-                                       maxength: 105
-                               }
-                       },
-                messages: {
-                               tags: {
-                        required: "{% trans "tags are required" %}",
-                        {% blocktrans with settings.FORM_MAX_NUMBER_OF_TAGS as max_number_of_tags and settings.FORM_MAX_LENGTH_OF_TAG as max_length_of_tags %}
-                        maxlength: "up to {{max_number_of_tags}} tags, less than {{max_length_of_tags}} characters each"
-                        {% endblocktrans %}
-                    }
+                    return row[1];
                 }
                 
             });