Anand Doshi | 885e074 | 2015-03-03 14:55:30 +0530 | [diff] [blame] | 1 | // Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors |
Rushabh Mehta | e67d1fb | 2013-08-05 14:59:54 +0530 | [diff] [blame] | 2 | // License: GNU General Public License v3. See license.txt |
| 3 | |
Rushabh Mehta | 793ba6b | 2014-02-14 15:47:51 +0530 | [diff] [blame] | 4 | frappe.provide('erpnext'); |
Rushabh Mehta | 8c309be | 2012-01-20 13:47:16 +0530 | [diff] [blame] | 5 | |
Rushabh Mehta | a920943 | 2012-05-07 18:00:57 +0530 | [diff] [blame] | 6 | // add toolbar icon |
Rushabh Mehta | 8c309be | 2012-01-20 13:47:16 +0530 | [diff] [blame] | 7 | $(document).bind('toolbar_setup', function() { |
Rushabh Mehta | 793ba6b | 2014-02-14 15:47:51 +0530 | [diff] [blame] | 8 | frappe.app.name = "ERPNext"; |
Rushabh Mehta | 8a40c13 | 2014-04-15 16:30:55 +0530 | [diff] [blame] | 9 | |
Anand Doshi | 5e849ae | 2015-07-13 16:56:37 +0530 | [diff] [blame] | 10 | frappe.help_feedback_link = '<p><a class="text-muted" \ |
| 11 | href="https://discuss.erpnext.com">Feedback</a></p>' |
| 12 | |
| 13 | |
Rushabh Mehta | 147acfd | 2015-08-05 14:49:32 +0530 | [diff] [blame] | 14 | $('.navbar-home').html('<img class="erpnext-icon" src="'+ |
| 15 | frappe.urllib.get_base_url()+'/assets/erpnext/images/erp-icon.svg" />'); |
Rushabh Mehta | e8dd416 | 2014-08-22 15:21:27 +0530 | [diff] [blame] | 16 | |
Anand Doshi | 8f9e631 | 2015-02-26 20:27:41 +0530 | [diff] [blame] | 17 | $('[data-link="docs"]').attr("href", "https://manual.erpnext.com") |
Neil Trini Lasrado | 728d019 | 2016-05-02 18:37:47 +0530 | [diff] [blame] | 18 | $('[data-link="issues"]').attr("href", "https://github.com/frappe/erpnext/issues") |
Anand Doshi | 859cb72 | 2012-04-10 11:35:19 +0530 | [diff] [blame] | 19 | }); |
Rushabh Mehta | 4c36d73 | 2015-01-01 15:59:34 +0530 | [diff] [blame] | 20 | |
| 21 | // doctypes created via tree |
Rushabh Mehta | f5f0d5a | 2015-03-09 15:47:15 +0530 | [diff] [blame] | 22 | $.extend(frappe.create_routes, { |
Saurabh | 1702273 | 2016-06-21 13:19:17 +0530 | [diff] [blame] | 23 | "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 Mehta | f5f0d5a | 2015-03-09 15:47:15 +0530 | [diff] [blame] | 29 | }); |
| 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 | }); |