2013-08-05 09:29:54 +00:00
|
|
|
// Copyright (c) 2013, Web Notes Technologies Pvt. Ltd.
|
|
|
|
// License: GNU General Public License v3. See license.txt
|
|
|
|
|
2012-04-17 08:24:53 +00:00
|
|
|
wn.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() {
|
2013-08-07 10:49:30 +00:00
|
|
|
wn.app.name = "ERPNext";
|
|
|
|
|
2013-07-19 12:20:25 +00:00
|
|
|
var brand = ($("<div></div>").append(wn.boot.website_settings.brand_html).text() || 'erpnext');
|
|
|
|
$('.navbar-brand').html('<div style="display: inline-block;">\
|
2013-07-18 13:58:46 +00:00
|
|
|
<object type="image/svg+xml" data="app/images/splash.svg" class="toolbar-splash"></object>\
|
2013-07-19 12:20:25 +00:00
|
|
|
</div>' + brand)
|
|
|
|
.attr("title", brand)
|
2013-07-18 12:45:56 +00:00
|
|
|
.addClass("navbar-icon-home")
|
2013-07-19 12:20:25 +00:00
|
|
|
.css({
|
|
|
|
"max-width": "200px",
|
|
|
|
"overflow": "hidden",
|
|
|
|
"text-overflow": "ellipsis",
|
|
|
|
"white-space": "nowrap"
|
|
|
|
});
|
2012-04-10 06:05:19 +00:00
|
|
|
});
|
2013-08-07 06:15:39 +00:00
|
|
|
|
|
|
|
wn.provide('wn.ui.misc');
|
|
|
|
wn.ui.misc.about = function() {
|
|
|
|
if(!wn.ui.misc.about_dialog) {
|
|
|
|
var d = new wn.ui.Dialog({title:'About ERPNext'})
|
|
|
|
|
|
|
|
$(d.body).html(repl("<div>\
|
|
|
|
<p>ERPNext is an open-source web based ERP made by Web Notes Technologies Pvt Ltd.\
|
|
|
|
to provide an integrated tool to manage most processes in a small organization.\
|
|
|
|
For more information about Web Notes, or to buy hosting servies, go to \
|
|
|
|
<a href='https://erpnext.com'>https://erpnext.com</a>.</p>\
|
|
|
|
<p>To report an issue, go to <a href='https://github.com/webnotes/erpnext/issues'>GitHub Issues</a></p>\
|
|
|
|
<hr>\
|
|
|
|
<p><a href='http://www.gnu.org/copyleft/gpl.html'>License: GNU General Public License Version 3</a></p>\
|
|
|
|
</div>", wn.app));
|
|
|
|
|
|
|
|
wn.ui.misc.about_dialog = d;
|
|
|
|
}
|
|
|
|
|
|
|
|
wn.ui.misc.about_dialog.show();
|
|
|
|
}
|