blob: af06b33f581faae356a6f8ba307f84ec6fc5c99c [file] [log] [blame]
Anand Doshi885e0742015-03-03 14:55:30 +05301// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
Rushabh Mehtae67d1fb2013-08-05 14:59:54 +05302// License: GNU General Public License v3. See license.txt
3
Rushabh Mehta793ba6b2014-02-14 15:47:51 +05304frappe.provide('erpnext');
Rushabh Mehta8c309be2012-01-20 13:47:16 +05305
Rushabh Mehtaa9209432012-05-07 18:00:57 +05306// add toolbar icon
Rushabh Mehta8c309be2012-01-20 13:47:16 +05307$(document).bind('toolbar_setup', function() {
Rushabh Mehta793ba6b2014-02-14 15:47:51 +05308 frappe.app.name = "ERPNext";
Rushabh Mehta8a40c132014-04-15 16:30:55 +05309
Anand Doshi5e849ae2015-07-13 16:56:37 +053010 frappe.help_feedback_link = '<p><a class="text-muted" \
11 href="https://discuss.erpnext.com">Feedback</a></p>'
12
13
Anand Doshi906c2ba2015-07-17 15:11:24 +053014 $('.navbar-home').html('<img class="erpnext-icon" src="/assets/erpnext/images/erp-icon.svg" />');
Rushabh Mehtae8dd4162014-08-22 15:21:27 +053015
Anand Doshi8f9e6312015-02-26 20:27:41 +053016 $('[data-link="docs"]').attr("href", "https://manual.erpnext.com")
Anand Doshi859cb722012-04-10 11:35:19 +053017});
Rushabh Mehta4c36d732015-01-01 15:59:34 +053018
19// doctypes created via tree
Rushabh Mehtaf5f0d5a2015-03-09 15:47:15 +053020$.extend(frappe.create_routes, {
21 "Customer Group": "Sales Browser/Customer Group",
22 "Territory": "Sales Browser/Territory",
23 "Item Group": "Sales Browser/Item Group",
24 "Sales Person": "Sales Browser/Sales Person",
25 "Account": "Accounts Browser/Account",
26 "Cost Center": "Accounts Browser/Cost Center"
27});
28
29// preferred modules for breadcrumbs
30$.extend(frappe.breadcrumbs.preferred, {
31 "Item Group": "Stock",
32 "Customer Group": "Selling",
33 "Supplier Type": "Buying",
34 "Territory": "Selling",
35 "Sales Person": "Selling",
36 "Sales Partner": "Selling",
37 "Brand": "Selling"
38});