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

51 lines
1.6 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>'
2019-01-21 14:05:46 +00:00
$('[data-link="docs"]').attr("href", "https://erpnext.com/docs")
$('[data-link="issues"]').attr("href", "https://github.com/frappe/erpnext/issues")
2016-08-22 13:17:35 +00:00
// default documentation goes to erpnext
2016-08-24 07:14:32 +00:00
// $('[data-link-type="documentation"]').attr('data-path', '/erpnext/manual/index');
2016-08-22 13:17:35 +00:00
// additional help links for erpnext
var $help_menu = $('.dropdown-help ul .documentation-links');
$('<li><a data-link-type="forum" href="https://erpnext.com/docs/user/manual" \
2019-01-21 14:05:46 +00:00
target="_blank">'+__('Documentation')+'</a></li>').insertBefore($help_menu);
2016-08-22 13:17:35 +00:00
$('<li><a data-link-type="forum" href="https://discuss.erpnext.com" \
target="_blank">'+__('User Forum')+'</a></li>').insertBefore($help_menu);
$('<li><a href="https://github.com/frappe/erpnext/issues" \
target="_blank">'+__('Report an Issue')+'</a></li>').insertBefore($help_menu);
2012-04-10 06:05:19 +00:00
});
2015-03-09 10:17:15 +00:00
// preferred modules for breadcrumbs
$.extend(frappe.breadcrumbs.preferred, {
"Item Group": "Stock",
"Customer Group": "Selling",
2018-04-19 13:07:53 +00:00
"Supplier Group": "Buying",
2015-03-09 10:17:15 +00:00
"Territory": "Selling",
"Sales Person": "Selling",
"Sales Partner": "Selling",
"Brand": "Stock"
2015-03-09 10:17:15 +00:00
});
2019-07-10 13:19:41 +00:00
$.extend(frappe.breadcrumbs.module_map, {
'ERPNext Integrations': 'Integrations',
'Geo': 'Settings',
'Portal': 'Website',
2019-07-10 13:52:16 +00:00
'Utilities': 'Settings',
'Shopping Cart': 'Website',
'Contacts': 'CRM'
2019-07-10 14:09:40 +00:00
});