mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 10:49:09 +00:00
[about] [minor] Cleaup
This commit is contained in:
@@ -2,17 +2,6 @@
|
|||||||
// License: GNU General Public License v3. See license.txt
|
// License: GNU General Public License v3. See license.txt
|
||||||
|
|
||||||
wn.provide('erpnext');
|
wn.provide('erpnext');
|
||||||
erpnext.set_about = function() {
|
|
||||||
wn.provide('wn.app');
|
|
||||||
$.extend(wn.app, {
|
|
||||||
name: 'ERPNext',
|
|
||||||
license: 'GNU/GPL - Usage Condition: All "erpnext" branding must be kept as it is',
|
|
||||||
source: 'https://github.com/webnotes/erpnext',
|
|
||||||
publisher: 'Web Notes Technologies Pvt Ltd, Mumbai',
|
|
||||||
copyright: '© Web Notes Technologies Pvt Ltd',
|
|
||||||
version: 'Please see git log for the release number'
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
wn.modules_path = 'erpnext';
|
wn.modules_path = 'erpnext';
|
||||||
|
|
||||||
@@ -31,3 +20,24 @@ $(document).bind('toolbar_setup', function() {
|
|||||||
"white-space": "nowrap"
|
"white-space": "nowrap"
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
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();
|
||||||
|
}
|
||||||
|
|||||||
@@ -43,7 +43,6 @@ erpnext.startup.start = function() {
|
|||||||
</div>', { expiry_string: expiry_string, payment_link: payment_link }));
|
</div>', { expiry_string: expiry_string, payment_link: payment_link }));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
erpnext.set_about();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user