[about] [minor] Cleaup
diff --git a/public/js/conf.js b/public/js/conf.js
index 033b251..625a513 100644
--- a/public/js/conf.js
+++ b/public/js/conf.js
@@ -2,17 +2,6 @@
// License: GNU General Public License v3. See license.txt
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';
@@ -31,3 +20,24 @@
"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();
+}
diff --git a/public/js/startup.js b/public/js/startup.js
index 000e1b5..6654ca7 100644
--- a/public/js/startup.js
+++ b/public/js/startup.js
@@ -43,7 +43,6 @@
</div>', { expiry_string: expiry_string, payment_link: payment_link }));
}
}
- erpnext.set_about();
}
}