From 7c744acc49ea5e453d4c2d854be5e399481bd4ac Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Tue, 20 Feb 2018 14:21:50 +0530 Subject: [PATCH] Changes for Rollup (#12924) * Changes for rollup * remove variables.less --- erpnext/public/build.json | 2 +- erpnext/public/js/shopping_cart.js | 2 +- erpnext/public/less/erpnext.less | 2 +- erpnext/templates/includes/projects/project_search_box.html | 4 ++-- erpnext/templates/pages/product_search.html | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/erpnext/public/build.json b/erpnext/public/build.json index 21cd2898c3..0ce5c75aee 100644 --- a/erpnext/public/build.json +++ b/erpnext/public/build.json @@ -1,6 +1,6 @@ { "css/erpnext.css": [ - "public/css/erpnext.css" + "public/less/erpnext.less" ], "js/erpnext-web.min.js": [ "public/js/website_utils.js", diff --git a/erpnext/public/js/shopping_cart.js b/erpnext/public/js/shopping_cart.js index 0a3e0af29d..7755141da6 100644 --- a/erpnext/public/js/shopping_cart.js +++ b/erpnext/public/js/shopping_cart.js @@ -64,7 +64,7 @@ $.extend(shopping_cart, { }, set_cart_count: function() { - var cart_count = getCookie("cart_count"); + var cart_count = frappe.get_cookie("cart_count"); if(frappe.session.user==="Guest") { cart_count = 0; } diff --git a/erpnext/public/less/erpnext.less b/erpnext/public/less/erpnext.less index 262b0c308c..711a40ac58 100644 --- a/erpnext/public/less/erpnext.less +++ b/erpnext/public/less/erpnext.less @@ -1,4 +1,4 @@ -@import "../../../../frappe/frappe/public/less/variables.less"; +@import "variables.less"; .erpnext-footer { margin: 11px auto; diff --git a/erpnext/templates/includes/projects/project_search_box.html b/erpnext/templates/includes/projects/project_search_box.html index 96eb10cf93..6f53bae2e8 100644 --- a/erpnext/templates/includes/projects/project_search_box.html +++ b/erpnext/templates/includes/projects/project_search_box.html @@ -11,8 +11,8 @@