浏览代码

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; var me = this;
// show filters // show filters
this.$w.find('.new-filter').bind('click', function() { this.$w.find('.new-filter').bind('click', function() {
me.add_filter();
me.add_filter(me.doctype, 'name');
}); });
}, },


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


正在加载...
取消
保存