ソースを参照

[fix] filters

version-14
Anand Doshi 9年前
コミット
f791949216
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();
} }
}, },


読み込み中…
キャンセル
保存