diff options
author | Udo Walter | 2017-12-21 19:34:28 +0100 |
---|---|---|
committer | Udo Walter | 2017-12-21 19:34:28 +0100 |
commit | 8b46da3853636a313543b8d9154d93054ed1193f (patch) | |
tree | 959490e1f4069dbf615ce78894b3d37e64ab8f2b /modules-available/permissionmanager/templates/roleeditor.html | |
parent | [permissionmanager] fixed small bug (diff) | |
download | slx-admin-8b46da3853636a313543b8d9154d93054ed1193f.tar.gz slx-admin-8b46da3853636a313543b8d9154d93054ed1193f.tar.xz slx-admin-8b46da3853636a313543b8d9154d93054ed1193f.zip |
[permissionmanager] removed openRoleEdior function;
changed searchFieldFunction() to use jQuery; fixed checkboxes in
roleeditor not selecting on a click on the label; added selected row
highlighting; disabled buttons if there are no users/roles selected;
made role badges in user/location tables clickable; added phpdoc
comments to most php functions;
Diffstat (limited to 'modules-available/permissionmanager/templates/roleeditor.html')
-rw-r--r-- | modules-available/permissionmanager/templates/roleeditor.html | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/modules-available/permissionmanager/templates/roleeditor.html b/modules-available/permissionmanager/templates/roleeditor.html index b07e2112..ddf6ace9 100644 --- a/modules-available/permissionmanager/templates/roleeditor.html +++ b/modules-available/permissionmanager/templates/roleeditor.html @@ -10,11 +10,11 @@ <li role="presentation" class="active"><a href="#permissions" role="tab" data-toggle="tab">{{lang_Permissions}}</a></li> <li role="presentation"><a href="#locations" role="tab" data-toggle="tab">{{lang_Locations}}</a></li> <li style="float: none; display: inline-block"> - <b>{{lang_Name}}:</b> - <input name="rolename" value="{{rolename}}" type="text" id="rolename" class="form-control"> + <label for="rolename">{{lang_Name}}:</label> + <input id="rolename" name="rolename" value="{{rolename}}" type="text" class="form-control"> </li> <li style="float: right;"> - <button type="button" id="cancelButton" class="btn btn-default">{{lang_Cancel}}</button> + <span><a href="?do=permissionmanager&show={{cancelShow}}" id="cancelButton" class="btn btn-default">{{lang_Cancel}}</a></span> <button type="submit" id="saveButton" class="btn btn-primary"><span class="glyphicon glyphicon-floppy-disk"></span> {{lang_Save}}</button> </li> </ul> @@ -56,15 +56,12 @@ } } }); - - $("#cancelButton").click(function () { - window.location.replace("?do=permissionmanager&show=roles"); - }); $('form').submit(function () { - var name = $.trim($('#rolename').val()); - if (name === '') { - $("#rolename").addClass("missingInput"); + var input = $("#rolename"); + var name = $.trim(input.val()); + if (!name) { + input.addClass("missingInput"); return false; } }); |