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

41 lines
1.3 KiB
JavaScript
Raw Normal View History

2013-11-20 07:29:58 +00:00
// Copyright (c) 2013, Web Notes 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
$('.navbar-brand').html('<i class="icon-home"></i>')
.attr("title", "Home")
.addClass("navbar-icon-home")
.css({
"max-width": "200px",
"text-overflow": "ellipsis",
"white-space": "nowrap"
});
2012-04-10 06:05:19 +00:00
});
2013-08-07 06:15:39 +00:00
2014-02-14 10:17:51 +00:00
frappe.provide('frappe.ui.misc');
frappe.ui.misc.about = function() {
if(!frappe.ui.misc.about_dialog) {
2014-04-14 10:55:30 +00:00
var d = new frappe.ui.Dialog({title: __('About')})
2014-04-15 11:00:55 +00:00
2013-08-07 06:15:39 +00:00
$(d.body).html(repl("<div>\
<h2>ERPNext</h2> \
2014-04-15 11:00:55 +00:00
<h4 class='text-muted'>"+__("Built on") + " Frappe Framework"+"</h4> \
<p>"+__("Open source ERP built for the web") + "</p>" +
2014-04-14 10:55:30 +00:00
"<p>"+__("To report an issue, go to ")+"<a href='https://github.com/frappe/erpnext/issues'>GitHub Issues</a></p> \
<p><a href='http://erpnext.org' target='_blank'>http://erpnext.org</a>.</p>\
2013-08-07 06:15:39 +00:00
<p><a href='http://www.gnu.org/copyleft/gpl.html'>License: GNU General Public License Version 3</a></p>\
<hr>\
<p>&copy; 2014 Web Notes Technologies Pvt. Ltd and contributers </p> \
2014-02-14 10:17:51 +00:00
</div>", frappe.app));
2014-04-15 11:00:55 +00:00
frappe.ui.misc.about_dialog = d;
2013-08-07 06:15:39 +00:00
}
2014-04-15 11:00:55 +00:00
2014-02-14 10:17:51 +00:00
frappe.ui.misc.about_dialog.show();
2013-08-07 06:15:39 +00:00
}