From 3ae2542bb8cd98b9bc0439ed3a980019461b9f6a Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Wed, 7 Aug 2013 11:45:39 +0530 Subject: [PATCH] [about] [minor] Cleaup --- public/js/conf.js | 32 +++++++++++++++++++++----------- public/js/startup.js | 1 - 2 files changed, 21 insertions(+), 12 deletions(-) diff --git a/public/js/conf.js b/public/js/conf.js index 033b2510aa..625a513cb1 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 @@ $(document).bind('toolbar_setup', function() { "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("
\ +

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 \ + https://erpnext.com.

\ +

To report an issue, go to GitHub Issues

\ +
\ +

License: GNU General Public License Version 3

\ +
", 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 000e1b566e..6654ca7611 100644 --- a/public/js/startup.js +++ b/public/js/startup.js @@ -43,7 +43,6 @@ erpnext.startup.start = function() { ', { expiry_string: expiry_string, payment_link: payment_link })); } } - erpnext.set_about(); } }