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

58 lines
1.8 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-08-05 09:19:32 +00:00
$('.navbar-home').html('<img class="erpnext-icon" src="'+
frappe.urllib.get_base_url()+'/assets/erpnext/images/erp-icon.svg" />');
2014-08-22 09:51:27 +00:00
$('[data-link="docs"]').attr("href", "https://frappe.github.io/erpnext/")
$('[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://discuss.erpnext.com" \
target="_blank">'+__('User Forum')+'</a></li>').insertBefore($help_menu);
$('<li><a href="https://gitter.im/frappe/erpnext" \
target="_blank">'+__('Chat')+'</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
});
2016-08-22 13:17:35 +00:00
// doctypes created via tree
2015-03-09 10:17:15 +00:00
$.extend(frappe.create_routes, {
"Customer Group": "Tree/Customer Group",
"Territory": "Tree/Territory",
"Item Group": "Tree/Item Group",
"Sales Person": "Tree/Sales Person",
"Account": "Tree/Account",
"Cost Center": "Tree/Cost Center"
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": "Selling"
});