mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-18 00:55:02 +00:00
fix: cart item toggle highlight
This commit is contained in:
@@ -376,7 +376,6 @@ erpnext.PointOfSale.Controller = class {
|
||||
|
||||
highlight_cart_item: (item) => {
|
||||
const cart_item = this.cart.get_cart_item(item);
|
||||
this.cart.toggle_item_highlight(cart_item);
|
||||
},
|
||||
|
||||
item_field_focused: (fieldname) => {
|
||||
|
||||
@@ -280,7 +280,7 @@ erpnext.PointOfSale.ItemCart = class {
|
||||
|
||||
toggle_item_highlight(item) {
|
||||
const $cart_item = $(item);
|
||||
const item_is_highlighted = $cart_item.attr("style") == "background-color:var(--gray-50);";
|
||||
const item_is_highlighted = $cart_item.attr("style") == "background-color: var(--control-bg);";
|
||||
|
||||
if (!item || item_is_highlighted) {
|
||||
this.item_is_selected = false;
|
||||
|
||||
Reference in New Issue
Block a user