deprecated breadcrumbs, titles are now selectable

This commit is contained in:
Rushabh Mehta
2012-11-13 16:44:27 +05:30
parent 40f5b15e8c
commit 3684155f28
9 changed files with 16 additions and 49 deletions

View File

@@ -16,6 +16,8 @@
pscript['onload_Sales Browser'] = function(wrapper){
wrapper.appframe = new wn.ui.AppFrame($(wrapper).find('.appframe-area'));
wrapper.appframe.add_module_tab("Selling");
wrapper.appframe.add_button('Refresh', function() {
wrapper.make_tree();
}, 'icon-refresh');
@@ -32,11 +34,7 @@ pscript['onshow_Sales Browser'] = function(wrapper){
// set route
var ctype = wn.get_route()[1] || 'Territory';
wrapper.appframe.clear_breadcrumbs();
wrapper.appframe.add_breadcrumb(ctype+' Tree')
document.title = ctype+' Tree';
wrapper.appframe.add_breadcrumb(' in <a href="#!selling-home">Selling</a>');
wrapper.appframe.set_title(ctype+' Tree')
if(erpnext.sales_chart && erpnext.sales_chart.ctype != ctype) {
wrapper.make_tree();