fix in issues arising due to wn.require

This commit is contained in:
Anand Doshi
2012-05-10 14:19:11 +05:30
parent 45b187ded1
commit 951d8ec342
11 changed files with 316 additions and 7 deletions

View File

@@ -0,0 +1,7 @@
/*
* erpnext/website/js/product_category.js
*/
erpnext.make_product_categories=function(wrapper){wrapper.category_list=new wn.ui.Listing({parent:$(wrapper).find('.more-categories').get(0),query:'select count(name) as items, item_group \
from tabItem where is_sales_item="Yes" \
group by item_group order by items desc',hide_refresh:true,render_row:function(parent,data){parent.innerHTML=repl('<a href="#!products/%(item_group)s">%(item_group)s</a> (%(items)s)',data);}});wrapper.category_list.run();}