Allow search without keypress enter

This commit is contained in:
Revant Nandgaonkar 2017-08-26 15:52:35 +05:30
parent 2f7cb82ca0
commit 2558daf6b7

View File

@ -427,7 +427,7 @@ erpnext.pos.PointOfSale = erpnext.taxes_and_totals.extend({
this.serach_item.make_input(); this.serach_item.make_input();
this.serach_item.$input.on("keypress", function (event) { this.serach_item.$input.on("keypress", function (event) {
if((me.serach_item.$input.val() != "") && (event.which == 13)){ if((me.serach_item.$input.val() != "") || (event.which == 13)){
me.items = me.get_items(); me.items = me.get_items();
me.make_item_list(); me.make_item_list();
} }