瀏覽代碼

Merged branch develop into documentation-fixes

version-14
Dony Sukardi 9 年之前
父節點
當前提交
8e92d41895
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      frappe/public/js/frappe/ui/filters/filters.js

+ 2
- 2
frappe/public/js/frappe/ui/filters/filters.js 查看文件

@@ -12,14 +12,14 @@ frappe.ui.FilterList = Class.extend({
var me = this;
// show filters
this.$w.find('.new-filter').bind('click', function() {
me.add_filter();
me.add_filter(me.doctype, 'name');
});
},

show_filters: function() {
this.$w.find('.show_filters').toggle();
if(!this.filters.length) {
this.add_filter();
this.add_filter(this.doctype, 'name');
this.filters[0].$w.find(".filter_field input").focus();
}
},


Loading…
取消
儲存