Slicereq: autofill org fix
authorYasin <mohammed-yasin.rahman@lip6.fr>
Tue, 15 Jul 2014 14:02:58 +0000 (16:02 +0200)
committerYasin <mohammed-yasin.rahman@lip6.fr>
Tue, 15 Jul 2014 14:02:58 +0000 (16:02 +0200)
portal/templates/onelab/onelab_slicerequest_view.html

index 82ccd16..f27307e 100644 (file)
 <script>
 jQuery(document).ready(function(){
        
-       $("#authority_hrn").load("/rest/user/", {"fields" : ["parent_authority"], "filters": {"user_hrn": "{{ user_hrn }}"}}, function(data) {
+       /*$("#authority_hrn").load("/rest/user/", {"fields" : ["parent_authority"], "filters": {"user_hrn": "{{ user_hrn }}"}}, function(data) {
                var jsonData = JSON.parse(data);
-               // getting the authority from the view not rest
-        $(this).attr("value", "{{authority_name}}");
-    });
+        $(this).attr("value", "{{jsonData}}");
+    });*/
+       $("#authority_hrn").val("{{authority_name}}");
        var availableTags = [
     {% if authorities %}
         {% for authority in authorities %}