From edb9efd9a63e2a096a580d4c08a7f3ba51af533f Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Mon, 9 Jun 2014 13:22:47 +0530 Subject: [PATCH] Fixed manifest and website --- MANIFEST.in | 1 + erpnext/setup/doctype/item_group/item_group.js | 2 +- erpnext/stock/doctype/item/item.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index 53477f2ed0..3e467e5362 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -16,4 +16,5 @@ recursive-include erpnext *.md recursive-include erpnext *.png recursive-include erpnext *.py recursive-include erpnext *.svg +recursive-include erpnext/public * recursive-exclude * *.pyc diff --git a/erpnext/setup/doctype/item_group/item_group.js b/erpnext/setup/doctype/item_group/item_group.js index 43a7117083..2aaf558642 100644 --- a/erpnext/setup/doctype/item_group/item_group.js +++ b/erpnext/setup/doctype/item_group/item_group.js @@ -11,7 +11,7 @@ cur_frm.cscript.refresh = function(doc, cdt, cdn) { if(!doc.__islocal && doc.show_in_website) { cur_frm.appframe.add_button("View In Website", function() { - window.open(doc.page_name); + window.open(doc.__onload.website_route); }, "icon-globe"); } } diff --git a/erpnext/stock/doctype/item/item.js b/erpnext/stock/doctype/item/item.js index 319d67dc90..2b499c168e 100644 --- a/erpnext/stock/doctype/item/item.js +++ b/erpnext/stock/doctype/item/item.js @@ -18,7 +18,7 @@ cur_frm.cscript.refresh = function(doc) { if(!doc.__islocal && doc.show_in_website) { cur_frm.appframe.add_button("View In Website", function() { - window.open(doc.page_name); + window.open(doc.__onload.website_route); }, "icon-globe"); } cur_frm.cscript.edit_prices_button();