ulrich
2016-12-27 68e666a09a284551311cf78be95d2696b58c9074
web/ui/ui.js
@@ -186,7 +186,6 @@
  return roleId;
}
// {"List":[{"List":[{"String":"ROLE_NAME"},{"String":"testrolle1"}]}]}
function um_show_user_role_list(resp) {
  $("#nutzerrollen").empty();
  var rollen = resp.List[0];
@@ -204,7 +203,6 @@
    var rolle = rollen.List[i];
    $("#rollen").append('<option value=' + rolle.String + '>' + rolle.String + '</option>');
  }
  //$('#neueRolle').prop( "disabled", true );
  $('#rolleErteilen').prop( "disabled", true );
}
@@ -221,7 +219,6 @@
    type: "POST",
    dataType : "html",
    success: function( resp ) {
      //$('#fehler').html('Antwort: ' + resp);
      um_apicall_get_user_list();
      um_back_from_new_user();
    },
@@ -275,7 +272,6 @@
  });      
}
// public UserRole grantRole(String userId, String roleName)
function um_apicall_grant_role(userId, roleName, isNewRole) {
  var m = 'grantRole';
  var u = '../svc/' + m;
@@ -325,7 +321,6 @@
  });
}
//public List getUserRoleNames(String userId)
function um_apicall_get_user_roles(userId) {
  var m = 'getUserRoleNames';
  var u = '../svc/' + m + '?p=' + userId;
@@ -334,7 +329,6 @@
    type: "GET",
    dataType : "json",
    success: function( resp ) {
      // Antwort in Liste anzeigen
      um_show_user_role_list(resp);
    },
    error: function( xhr, status, errorThrown ) {
@@ -354,7 +348,6 @@
    type: "GET",
    dataType : "json",
    success: function( resp ) {
      // Antwort in Liste anzeigen
      um_show_role_list(resp);
    },
    error: function( xhr, status, errorThrown ) {