From 81bded1afe7baee52c1db7d498272bc7443406ea Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Wed, 27 May 2015 16:48:06 -0400 Subject: [PATCH] [fix] Product Search --- erpnext/public/css/website.css | 6 ++++++ erpnext/public/less/website.less | 7 +++++++ erpnext/templates/includes/product_search_box.html | 6 +++--- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/erpnext/public/css/website.css b/erpnext/public/css/website.css index 7d02940ba8..9b4df40bd1 100644 --- a/erpnext/public/css/website.css +++ b/erpnext/public/css/website.css @@ -48,3 +48,9 @@ .product-text { padding: 15px 0px; } +@media (max-width: 767px) { + .product-search { + width: 100%; + margin-bottom: 13px; + } +} diff --git a/erpnext/public/less/website.less b/erpnext/public/less/website.less index c42cb4cf6c..c0667cceab 100644 --- a/erpnext/public/less/website.less +++ b/erpnext/public/less/website.less @@ -51,3 +51,10 @@ .product-text { padding: 15px 0px; } + +@media (max-width: 767px) { + .product-search { + width: 100%; + margin-bottom: 13px; + } +} diff --git a/erpnext/templates/includes/product_search_box.html b/erpnext/templates/includes/product_search_box.html index d4f6e7b69c..a5592c10b5 100644 --- a/erpnext/templates/includes/product_search_box.html +++ b/erpnext/templates/includes/product_search_box.html @@ -2,7 +2,7 @@ frappe.ready(function() { $(".product-search").remove(); - $('').prependTo(".page-header-block"); $('.dropdown-toggle').dropdown(); $("#btn-product-search").click(function() { var txt = $("#product-search").val(); if(txt) { - window.location.href="product_search?q=" + txt; + window.location.href="/product_search?q=" + txt; } return false; });