Browse Source

In pemission manager make doctype and role list sorted (#3576)

version-14
Manas Solanki 8 years ago
committed by Rushabh Mehta
parent
commit
24ad910211
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      frappe/core/page/permission_manager/permission_manager.js

+ 2
- 2
frappe/core/page/permission_manager/permission_manager.js View File

@@ -45,13 +45,13 @@ frappe.PermissionEngine = Class.extend({
var me = this;
this.doctype_select
= this.wrapper.page.add_select(__("Document Types"),
[{value: "", label: __("Select Document Type")+"..."}].concat(this.options.doctypes))
[{value: "", label: __("Select Document Type")+"..."}].concat(this.options.doctypes.sort()))
.change(function() {
frappe.set_route("permission-manager", $(this).val());
});
this.role_select
= this.wrapper.page.add_select(__("Roles"),
[__("Select Role")+"..."].concat(this.options.roles))
[__("Select Role")+"..."].concat(this.options.roles.sort()))
.change(function() {
me.refresh();
});


Loading…
Cancel
Save