fix - show about of application
diff --git a/erpnext/startup/startup.js b/erpnext/startup/startup.js
index e550b01..456b1cf 100644
--- a/erpnext/startup/startup.js
+++ b/erpnext/startup/startup.js
@@ -89,6 +89,8 @@
}
+ erpnext.set_about();
+
$('#startup_div').toggle(false);
}
@@ -172,4 +174,3 @@
$(document).bind('startup', function() {
erpnext.startup.start();
});
-
diff --git a/js/all-app.js b/js/all-app.js
index fca0919..5d8bbe3 100644
--- a/js/all-app.js
+++ b/js/all-app.js
@@ -472,7 +472,7 @@
* lib/js/core.js
*/
if(!console){var console={log:function(txt){alert(txt);}}}
-wn.versions.check();$(document).bind('ready',function(){wn.app=new wn.Application();});
+wn.versions.check();$(document).bind('ready',function(){wn.provide('wn.app');$.extend(wn.app,new wn.Application());});
/*
* lib/js/legacy/globals.js
@@ -2155,7 +2155,7 @@
/*
* js/app.js
*/
-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:'2.'+window._version_number}
+wn.provide('erpnext');wn.provide('wn.app');erpnext.set_about=function(){$.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:'2.'+window._version_number});}
wn.modules_path='erpnext';$(document).bind('toolbar_setup',function(){$('.brand').html('<b>erp</b>next\
<i class="icon-home icon-white navbar-icon-home" ></i>').hover(function(){$(this).find('.icon-home').addClass('navbar-icon-home-hover');},function(){$(this).find('.icon-home').removeClass('navbar-icon-home-hover');});});
/*
@@ -2170,7 +2170,7 @@
if(wn.boot.website_settings.title_prefix){wn.title_prefix=wn.boot.website_settings.title_prefix;}}else{wn.boot.profile.allow_modules=wn.boot.profile.allow_modules.concat(['To Do','Knowledge Base','Calendar','Activity','Messages'])
if(user_roles.indexOf('Accounts Manager')!=-1){wn.boot.profile.allow_modules.push('Dashboard');}
erpnext.toolbar.setup();erpnext.startup.set_periodic_updates();if(in_list(user_roles,'System Manager')&&(wn.boot.setup_complete=='No')){wn.require("erpnext/startup/js/complete_setup.js");erpnext.complete_setup();}}
-$('#startup_div').toggle(false);}
+erpnext.set_about();$('#startup_div').toggle(false);}
show_chart_browser=function(nm,chart_type){var call_back=function(){if(nm=='Sales Browser'){var sb_obj=new SalesBrowser();sb_obj.set_val(chart_type);}
else if(nm=='Accounts Browser')
pscript.make_chart(chart_type);}
diff --git a/js/all-web.js b/js/all-web.js
index 29b46ff..1247a2e 100644
--- a/js/all-web.js
+++ b/js/all-web.js
@@ -359,7 +359,7 @@
* lib/js/core.js
*/
if(!console){var console={log:function(txt){alert(txt);}}}
-wn.versions.check();$(document).bind('ready',function(){wn.app=new wn.Application();});
+wn.versions.check();$(document).bind('ready',function(){wn.provide('wn.app');$.extend(wn.app,new wn.Application());});
/*
* lib/js/legacy/globals.js
@@ -855,7 +855,7 @@
/*
* js/app.js
*/
-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:'2.'+window._version_number}
+wn.provide('erpnext');wn.provide('wn.app');erpnext.set_about=function(){$.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:'2.'+window._version_number});}
wn.modules_path='erpnext';$(document).bind('toolbar_setup',function(){$('.brand').html('<b>erp</b>next\
<i class="icon-home icon-white navbar-icon-home" ></i>').hover(function(){$(this).find('.icon-home').addClass('navbar-icon-home-hover');},function(){$(this).find('.icon-home').removeClass('navbar-icon-home-hover');});});
/*
@@ -870,7 +870,7 @@
if(wn.boot.website_settings.title_prefix){wn.title_prefix=wn.boot.website_settings.title_prefix;}}else{wn.boot.profile.allow_modules=wn.boot.profile.allow_modules.concat(['To Do','Knowledge Base','Calendar','Activity','Messages'])
if(user_roles.indexOf('Accounts Manager')!=-1){wn.boot.profile.allow_modules.push('Dashboard');}
erpnext.toolbar.setup();erpnext.startup.set_periodic_updates();if(in_list(user_roles,'System Manager')&&(wn.boot.setup_complete=='No')){wn.require("erpnext/startup/js/complete_setup.js");erpnext.complete_setup();}}
-$('#startup_div').toggle(false);}
+erpnext.set_about();$('#startup_div').toggle(false);}
show_chart_browser=function(nm,chart_type){var call_back=function(){if(nm=='Sales Browser'){var sb_obj=new SalesBrowser();sb_obj.set_val(chart_type);}
else if(nm=='Accounts Browser')
pscript.make_chart(chart_type);}
diff --git a/js/app.js b/js/app.js
index e0716ec..b8b772e 100644
--- a/js/app.js
+++ b/js/app.js
@@ -1,10 +1,14 @@
-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: '2.' + window._version_number
+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: '2.' + window._version_number
+ });
}
wn.modules_path = 'erpnext';