mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-19 13:09:17 +00:00
fix: cart item toggle highlight
This commit is contained in:
@@ -376,7 +376,6 @@ erpnext.PointOfSale.Controller = class {
|
|||||||
|
|
||||||
highlight_cart_item: (item) => {
|
highlight_cart_item: (item) => {
|
||||||
const cart_item = this.cart.get_cart_item(item);
|
const cart_item = this.cart.get_cart_item(item);
|
||||||
this.cart.toggle_item_highlight(cart_item);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
item_field_focused: (fieldname) => {
|
item_field_focused: (fieldname) => {
|
||||||
|
|||||||
@@ -280,7 +280,7 @@ erpnext.PointOfSale.ItemCart = class {
|
|||||||
|
|
||||||
toggle_item_highlight(item) {
|
toggle_item_highlight(item) {
|
||||||
const $cart_item = $(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) {
|
if (!item || item_is_highlighted) {
|
||||||
this.item_is_selected = false;
|
this.item_is_selected = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user