Remove "clic ici" link from login page
authorverrierj
Fri, 03 Feb 2012 12:13:24 +0100
changeset 522 7d6630fd287e
parent 521 20e7bb9d2d14
child 523 668a7f75b256
Remove "clic ici" link from login page
web/ldtplatform/templates/registration/login.html
--- a/web/ldtplatform/templates/registration/login.html	Fri Feb 03 12:09:54 2012 +0100
+++ b/web/ldtplatform/templates/registration/login.html	Fri Feb 03 12:13:24 2012 +0100
@@ -1,71 +1,7 @@
 {% extends "registration/base.html" %}
 {% load i18n %}
-{% block js_declaration %}{{ block.super }}
-    <script type="text/javascript">
-        $(document).ready(function() {
-            $("#login-form").validate();
-            
-            
-            $('#mon_ajax').click(function(e) {
-                var url = "{% url project_api project_id='c8448f21-272d-11e1-876b-c8bcc896c290' emitter_format='.json' %}";
-                
-                var monjson = '{\
-                        "annotations": [\
-                            {\
-                                "type": "c_07BA1284-5F24-71A8-1EE2-423EED999B8A",\
-                                "type_title": "New cutting name if necessary",\
-                                "media": "briandepalma_scarfacedepalma",\
-                                "begin": 1600000,\
-                                "end": 2100000,\
-                                "content": {\
-                                    "data": "new scar annot"\
-                                },\
-                                "tags": [ "json","dude" ]\
-                            }\
-                        ],\
-                        "meta": {\
-                            "creator": "John Doe",\
-                            "created": "2011-09-10T09:12:58"\
-                        }\
-                    }';
-                var monjson2 = '{\
-                        "annotations": [\
-                            {\
-                                "type": "c_07BA1284-5F24-71A8-1EE2-423EED999B8A",\
-                                "type_title": "New cutting name if necessary",\
-                                "media": "briandepalma_scarfacedepalma",\
-                                "begin": 2400000,\
-                                "end": 3000000,\
-                                "content": {\
-                                    "data": "ntm iam 2"\
-                                },\
-                                "tags": [ "jak" ]\
-                            }\
-                        ],\
-                        "meta": {\
-                            "creator": "John Doe",\
-                            "created": "2011-09-10T09:12:58"\
-                        }\
-                    }';
-                
-                $.ajax({
-                    url: url,
-                    type: 'PUT',
-                    contentType: 'application/json',
-                    data: monjson,
-                    // bug with jquery >= 1.5, "json" adds a callback so we don't specify dataType
-                    //dataType: 'json',
-                    success: function(json, textStatus, XMLHttpRequest) {
-                        alert("success = " + json);
-                    },
-                    error: function(jqXHR, textStatus, errorThrown) {
-                        alert("ERROR = " + jqXHR.responseText + ", " + errorThrown);
-                    }
-                });
-            });
-            
-        });
-    </script>
+{% block js_declaration %}
+{{ block.super }}
 {% endblock %}
 
 {% block css_import %}
@@ -112,7 +48,6 @@
             {% endif %}
             </div>
         </div>
-        <p id="mon_ajax">clic ici</p>
 	</div> 
 
 {% endblock %}