瀏覽代碼

[minor][awesomebar] fix list options (#3619)

version-14
Prateeksha Singh 8 年之前
committed by Faris Ansari
父節點
當前提交
2f6987e094
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. +1
    -1
      frappe/public/js/frappe/ui/toolbar/awesome_bar.js
  2. +1
    -1
      frappe/public/js/frappe/ui/toolbar/search_utils.js

+ 1
- 1
frappe/public/js/frappe/ui/toolbar/awesome_bar.js 查看文件

@@ -187,7 +187,7 @@ frappe.search.AwesomeBar = Class.extend({
routes.push(str_route);
} else {
var old = routes.indexOf(str_route);
if(out[old].index > option.index) {
if(out[old].index < option.index) {
out[old] = option;
}
}


+ 1
- 1
frappe/public/js/frappe/ui/toolbar/search_utils.js 查看文件

@@ -152,7 +152,7 @@ frappe.search.utils = {
type: "New",
label: __("New {0}", [me.bolden_match_part(__(item), keywords)]),
value: __("New {0}", [__(item)]),
index: level + 0.01,
index: level + 0.015,
match: item,
onclick: function () { frappe.new_doc(match, true); }
});


Loading…
取消
儲存