brotherton-erpnext/erpnext/public/js/conf.js

39 lines
1.1 KiB
JavaScript
Raw Normal View History

// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
// License: GNU General Public License v3. See license.txt
2014-02-14 10:17:51 +00:00
frappe.provide('erpnext');
2012-01-20 08:17:16 +00:00
2012-05-07 12:30:57 +00:00
// add toolbar icon
2012-01-20 08:17:16 +00:00
$(document).bind('toolbar_setup', function() {
2014-02-14 10:17:51 +00:00
frappe.app.name = "ERPNext";
2014-04-15 11:00:55 +00:00
2015-07-13 11:26:37 +00:00
frappe.help_feedback_link = '<p><a class="text-muted" \
href="https://discuss.erpnext.com">Feedback</a></p>'
2015-01-21 12:54:44 +00:00
$('.navbar-home').html('ERPNext');
2014-08-22 09:51:27 +00:00
2015-02-26 14:57:41 +00:00
$('[data-link="docs"]').attr("href", "https://manual.erpnext.com")
2012-04-10 06:05:19 +00:00
});
// doctypes created via tree
2015-03-09 10:17:15 +00:00
$.extend(frappe.create_routes, {
"Customer Group": "Sales Browser/Customer Group",
"Territory": "Sales Browser/Territory",
"Item Group": "Sales Browser/Item Group",
"Sales Person": "Sales Browser/Sales Person",
"Account": "Accounts Browser/Account",
"Cost Center": "Accounts Browser/Cost Center"
});
// preferred modules for breadcrumbs
$.extend(frappe.breadcrumbs.preferred, {
"Item Group": "Stock",
"Customer Group": "Selling",
"Supplier Type": "Buying",
"Territory": "Selling",
"Sales Person": "Selling",
"Sales Partner": "Selling",
"Brand": "Selling"
});