blob: 233bd2e4962bb5f47b813856840208e55a7d4cec [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
Rushabh Mehta147acfd2015-08-05 14:49:32 +053014 $('.navbar-home').html('<img class="erpnext-icon" src="'+
15 frappe.urllib.get_base_url()+'/assets/erpnext/images/erp-icon.svg" />');
Rushabh Mehtae8dd4162014-08-22 15:21:27 +053016
Anand Doshi8f9e6312015-02-26 20:27:41 +053017 $('[data-link="docs"]').attr("href", "https://manual.erpnext.com")
Neil Trini Lasrado728d0192016-05-02 18:37:47 +053018 $('[data-link="issues"]').attr("href", "https://github.com/frappe/erpnext/issues")
Anand Doshi859cb722012-04-10 11:35:19 +053019});
Rushabh Mehta4c36d732015-01-01 15:59:34 +053020
21// doctypes created via tree
Rushabh Mehtaf5f0d5a2015-03-09 15:47:15 +053022$.extend(frappe.create_routes, {
Saurabh17022732016-06-21 13:19:17 +053023 "Customer Group": "Tree/Customer Group",
24 "Territory": "Tree/Territory",
25 "Item Group": "Tree/Item Group",
26 "Sales Person": "Tree/Sales Person",
27 "Account": "Tree/Account",
28 "Cost Center": "Tree/Cost Center"
Rushabh Mehtaf5f0d5a2015-03-09 15:47:15 +053029});
30
31// preferred modules for breadcrumbs
32$.extend(frappe.breadcrumbs.preferred, {
33 "Item Group": "Stock",
34 "Customer Group": "Selling",
35 "Supplier Type": "Buying",
36 "Territory": "Selling",
37 "Sales Person": "Selling",
38 "Sales Partner": "Selling",
39 "Brand": "Selling"
40});