]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/question_edit.html
user profile fixes
[osqa.git] / forum / skins / default / templates / question_edit.html
index fe711849006390ba64b0f5bd52685a8a5cd505d1..2fec6c04ac2b48dfccf756ca5f82b444c73a3066 100644 (file)
@@ -4,9 +4,6 @@
 {% load extra_tags %}
 {% block title %}{% spaceless %}{% trans "Edit question" %}{% endspaceless %}{% endblock %}
 {% block forejs %}
-        <script type='text/javascript' src='{% media  "/media/js/com.cnprog.editor.js" %}'></script>
-        <script type='text/javascript' src='{% media  "/media/js/com.cnprog.post.js" %}'></script>
-        <script type='text/javascript' src='{% media  "/media/js/jquery.validate.pack.js" %}'></script>
         <script type='text/javascript' src='{% media  "/media/js/wmd/showdown.js" %}'></script>
         <script type='text/javascript' src='{% media  "/media/js/wmd/wmd.js" %}'></script>
         <link rel="stylesheet" type="text/css" href="{% media  "/media/js/wmd/wmd.css" %}" />
             $("#nav_questions").attr('className',"on");
             $('#editor').TextAreaResizer();
             
-            //highlight code synctax when editor has new text
-            $("#editor").typeWatch({highlight: false, wait: 3000,
-                             captureLength: 5, callback: lanai.highlightSyntax});
-                             
+
             //toggle preview of editor
             var display = true;
             var txt = "[{% trans "hide preview" %}]";
                     return row.n;
                 }
                 
-            });
-            
-            setupFormValidation("#fmedit", CPValidator.getQuestionFormRules(), CPValidator.getQuestionFormMessages());
-            
+            });         
+
             $('#id_revision').unbind().change(function(){
                 $("#select_revision").click();
             });
-            lanai.highlightSyntax();
-            
+
         });
         </script>
 {% endblock %}