// Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
// MIT License. See license.txt

frappe.ui.toolbar.Search = frappe.ui.toolbar.SelectorDialog.extend({
	init: function() {
		this._super({
			title: frappe._("Search"),
			execute: function(val) {
				frappe.set_route("List", val);
			},
			help: frappe._("Shortcut") + ": Ctrl+G"
		});
		
		// get new types
		this.set_values(frappe.boot.profile.can_search.join(',').split(','));
	}
});

// Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
// MIT License. See license.txt

frappe.ui.toolbar.Search = frappe.ui.toolbar.SelectorDialog.extend({
	init: function() {
		this._super({
			title: frappe._("Search"),
			execute: function(val) {
				frappe.set_route("List", val, {"name": "%"});
			},
			help: frappe._("Shortcut") + ": Ctrl+G"
		});
		
		// get new types
		this.set_values(frappe.boot.profile.can_search.join(',').split(','));
	}
});

Add default filter on ID when listview loaded from Toolber Search
Add default filter on ID when listview loaded from Toolber Search
