}
}
+ updateRole=function(modifiedRole){
+ if (modifiedRole.modified()){
+ modifiedRole.updateDescription();
+ modifiedRole.modified(false);
+ }
+ if (modifiedRole.usersModified()){
+ modifiedRole.updateUsers();
+ modifiedRole.usersModified(false);
+ }
+ }
+
}
displayRolesGrid = function(){
<th>${ columnDefinition.headerText }</th>
{{/each}}
<th>${$.i18n.prop('edit')}</th>
+ <th>${$.i18n.prop('save')}</th>
</tr>
</thead>
<tbody>
<td>
<a id="edit-role-${row.name()}" href="#" data-bind="click: function(){ editRole(row) }">${$.i18n.prop('edit')}</a>
</td>
+ <td>
+ {{if row.modified()}}
+ <a href="#" class="btn" data-bind="click: function(){ updateRole(row) }">${$.i18n.prop('save')}</a>
+ {{/if}}
+ </td>
</tr>
{{/each}}
</tbody>