Merge pull request #1848 from girirajsharma/KEYCLOAK-2121

[KEYCLOAK-2121] Adding user or group attributes using ENTER key deletes first attribute
This commit is contained in:
Bill Burke 2015-11-25 08:53:42 -05:00
commit 4f401c7547
2 changed files with 4 additions and 4 deletions

View file

@ -20,14 +20,14 @@
<td>{{key}}</td> <td>{{key}}</td>
<td><input ng-model="group.attributes[key]" class="form-control" type="text" name="{{key}}" id="attribute-{{key}}" /></td> <td><input ng-model="group.attributes[key]" class="form-control" type="text" name="{{key}}" id="attribute-{{key}}" /></td>
<td class="kc-action-cell"> <td class="kc-action-cell">
<button class="btn btn-default btn-block btn-sm" data-ng-click="removeAttribute(key)">Delete</button> <button type="button" class="btn btn-default btn-block btn-sm" data-ng-click="removeAttribute(key)">Delete</button>
</td> </td>
</tr> </tr>
<tr> <tr>
<td><input ng-model="newAttribute.key" class="form-control" type="text" id="newAttributeKey" /></td> <td><input ng-model="newAttribute.key" class="form-control" type="text" id="newAttributeKey" /></td>
<td><input ng-model="newAttribute.value" class="form-control" type="text" id="newAttributeValue" /></td> <td><input ng-model="newAttribute.value" class="form-control" type="text" id="newAttributeValue" /></td>
<td class="kc-action-cell"> <td class="kc-action-cell">
<button class="btn btn-default btn-block btn-sm" data-ng-click="addAttribute()">Add</button> <button type="button" class="btn btn-default btn-block btn-sm" data-ng-click="addAttribute()">Add</button>
</td> </td>
</tr> </tr>
</tbody> </tbody>

View file

@ -20,14 +20,14 @@
<td>{{key}}</td> <td>{{key}}</td>
<td><input ng-model="user.attributes[key]" class="form-control" type="text" name="{{key}}" id="attribute-{{key}}" /></td> <td><input ng-model="user.attributes[key]" class="form-control" type="text" name="{{key}}" id="attribute-{{key}}" /></td>
<td class="kc-action-cell"> <td class="kc-action-cell">
<button class="btn btn-default btn-block btn-sm" data-ng-click="removeAttribute(key)">Delete</button> <button type="button" class="btn btn-default btn-block btn-sm" data-ng-click="removeAttribute(key)">Delete</button>
</td> </td>
</tr> </tr>
<tr> <tr>
<td><input ng-model="newAttribute.key" class="form-control" type="text" id="newAttributeKey" /></td> <td><input ng-model="newAttribute.key" class="form-control" type="text" id="newAttributeKey" /></td>
<td><input ng-model="newAttribute.value" class="form-control" type="text" id="newAttributeValue" /></td> <td><input ng-model="newAttribute.value" class="form-control" type="text" id="newAttributeValue" /></td>
<td class="kc-action-cell"> <td class="kc-action-cell">
<button class="btn btn-default btn-block btn-sm" data-ng-click="addAttribute()">Add</button> <button type="button" class="btn btn-default btn-block btn-sm" data-ng-click="addAttribute()">Add</button>
</td> </td>
</tr> </tr>
</tbody> </tbody>