瀏覽代碼

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

version-14
Manas Solanki 8 年之前
committed by Rushabh Mehta
父節點
當前提交
24ad910211
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      frappe/core/page/permission_manager/permission_manager.js

+ 2
- 2
frappe/core/page/permission_manager/permission_manager.js 查看文件

@@ -45,13 +45,13 @@ frappe.PermissionEngine = Class.extend({
var me = this; var me = this;
this.doctype_select this.doctype_select
= this.wrapper.page.add_select(__("Document Types"), = 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() { .change(function() {
frappe.set_route("permission-manager", $(this).val()); frappe.set_route("permission-manager", $(this).val());
}); });
this.role_select this.role_select
= this.wrapper.page.add_select(__("Roles"), = this.wrapper.page.add_select(__("Roles"),
[__("Select Role")+"..."].concat(this.options.roles))
[__("Select Role")+"..."].concat(this.options.roles.sort()))
.change(function() { .change(function() {
me.refresh(); me.refresh();
}); });


Loading…
取消
儲存