query prefixed with myslice in slice page users tab
[myslice.git] / portal / templates / slice-tab-users-view.html
index 82acd01..6f06c1f 100644 (file)
@@ -4,13 +4,12 @@
 <link rel="stylesheet" href="{{ STATIC_URL }}css/jquery-ui.css">
 <script>
     function get_users_in_slice(authority_hrn){
-        console.log(authority_hrn);
         $("table#user-tab").html("<tr><th>+/-</th><th>Email</th><th>User hrn</th></tr>");
        var slice_users = [];
        var slice_users_removed = [];
                var slice_users_emails = [];
        var slice_users_emails_removed = [];
-       $.post("/rest/user/",{'filters':{'parent_authority': authority_hrn}}, function( data ) {
+       $.post("/rest/myslice:user/",{'filters':{'parent_authority': authority_hrn}}, function( data ) {
                var list_users = [];
                var table_users = [];
                /* Available fields
@@ -69,7 +68,7 @@
        }); // post rest/use
 
                $('button#addusers').click(function() {
-               $.post("/update/slice/",{'filters':{'slice_hrn':'{{slice}}'},'params':{'users':slice_users}}, function(data) {
+               $.post("/update/myslice:slice/",{'filters':{'slice_hrn':'{{slice}}'},'params':{'users':slice_users}}, function(data) {
                        if(data.success){
                        // TODO: highlight row after success
                        //$('tr[id="'+record_id+'"]').highlight();
@@ -88,7 +87,7 @@
 
     $(document).ready(function() {
             // TODO: Add a filter based on the list of authorities
-               $.post("/rest/authority/",{'fields':['authority_hrn']}, function( data ) {
+               $.post("/rest/myslice:authority/",{'fields':['authority_hrn']}, function( data ) {
                 var list_authorities = [];
                 $.each( data, function( key, val ) {
                     auth_hrn = val.authority_hrn;