Merge branch 'shf_rename' of github.com:webnotes/erpnext into shf_rename
This commit is contained in:
commit
2ab4451d1b
@ -1260,7 +1260,7 @@ button.btn.small, input[type="submit"].btn.small {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.icon-white {
|
.icon-white {
|
||||||
background-image: url("./lib/images/icons/glyphicons-halflings-white.png");
|
background-image: url("../lib/images/icons/glyphicons-halflings-white.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon-glass {
|
.icon-glass {
|
||||||
|
@ -1217,7 +1217,7 @@ button.btn.small, input[type="submit"].btn.small {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.icon-white {
|
.icon-white {
|
||||||
background-image: url("./lib/images/icons/glyphicons-halflings-white.png");
|
background-image: url("../lib/images/icons/glyphicons-halflings-white.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon-glass {
|
.icon-glass {
|
||||||
|
@ -19,14 +19,12 @@
|
|||||||
wn.provide('erpnext.complete_setup');
|
wn.provide('erpnext.complete_setup');
|
||||||
|
|
||||||
$.extend(erpnext.complete_setup, {
|
$.extend(erpnext.complete_setup, {
|
||||||
|
|
||||||
show: function() {
|
show: function() {
|
||||||
d = erpnext.complete_setup.prepare_dialog();
|
d = erpnext.complete_setup.prepare_dialog();
|
||||||
d.show();
|
d.show();
|
||||||
},
|
},
|
||||||
|
|
||||||
prepare_dialog: function() {
|
prepare_dialog: function() {
|
||||||
|
|
||||||
var d = new wn.widgets.Dialog({
|
var d = new wn.widgets.Dialog({
|
||||||
title: "Setup",
|
title: "Setup",
|
||||||
fields: [
|
fields: [
|
||||||
@ -46,7 +44,7 @@ $.extend(erpnext.complete_setup, {
|
|||||||
{fieldname:'country', label: 'Country', reqd:1,
|
{fieldname:'country', label: 'Country', reqd:1,
|
||||||
options: erpnext.complete_setup.country_list.join('\n'), fieldtype: 'Select'},
|
options: erpnext.complete_setup.country_list.join('\n'), fieldtype: 'Select'},
|
||||||
{fieldname:'timezone', label: 'Time Zone', reqd:1,
|
{fieldname:'timezone', label: 'Time Zone', reqd:1,
|
||||||
options: "", fieldtype: 'Select'},
|
options: '', fieldtype: 'Select'},
|
||||||
{fieldname:'update', label:'Setup',fieldtype:'Button'},
|
{fieldname:'update', label:'Setup',fieldtype:'Button'},
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
@ -473,6 +471,6 @@ $.extend(erpnext.complete_setup, {
|
|||||||
'Vietnam': ['Asia/Saigon'],
|
'Vietnam': ['Asia/Saigon'],
|
||||||
'Yemen': ['Asia/Aden'],
|
'Yemen': ['Asia/Aden'],
|
||||||
'Zambia': ['Africa/Lusaka'],
|
'Zambia': ['Africa/Lusaka'],
|
||||||
'Zimbabwe': ['Africa/Harare']
|
'Zimbabwe': ['Africa/Harare'],
|
||||||
},
|
},
|
||||||
});
|
});
|
@ -43,25 +43,7 @@ erpnext.toolbar.setup = function() {
|
|||||||
$('#toolbar-help').append('<li><a href="http://www.providesupport.com?messenger=iwebnotes" target="_blank">\
|
$('#toolbar-help').append('<li><a href="http://www.providesupport.com?messenger=iwebnotes" target="_blank">\
|
||||||
Live Chat (Office Hours)</a></li>')
|
Live Chat (Office Hours)</a></li>')
|
||||||
|
|
||||||
$.extend(wn.container.wntoolbar, {
|
erpnext.toolbar.set_new_comments();
|
||||||
set_new_comments: function(new_comments) {
|
|
||||||
var navbar_nc = $('.navbar-new-comments');
|
|
||||||
if(new_comments && new_comments.length>0) {
|
|
||||||
navbar_nc.text(new_comments.length);
|
|
||||||
navbar_nc.addClass('navbar-new-comments-true')
|
|
||||||
$.each(new_comments, function(i, v) {
|
|
||||||
var msg = 'New Message: ' + (v[1].length<=100 ? v[1] : (v[1].substr(0, 100) + "..."));
|
|
||||||
var id = v[0].replace('/', '-');
|
|
||||||
if(!$('#' + id)[0]) { show_alert(msg, id); }
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
navbar_nc.removeClass('navbar-new-comments-true');
|
|
||||||
navbar_nc.text(0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
wn.container.wntoolbar.set_new_comments();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
erpnext.toolbar.add_modules = function() {
|
erpnext.toolbar.add_modules = function() {
|
||||||
@ -73,8 +55,9 @@ erpnext.toolbar.add_modules = function() {
|
|||||||
</li>').prependTo('.navbar .nav:first');
|
</li>').prependTo('.navbar .nav:first');
|
||||||
|
|
||||||
// if no modules list then show all
|
// if no modules list then show all
|
||||||
if(wn.boot.modules_list)
|
if(wn.boot.modules_list && typeof(wn.boot.modules_list) == 'string') {
|
||||||
wn.boot.modules_list = JSON.parse(wn.boot.modules_list);
|
wn.boot.modules_list = JSON.parse(wn.boot.modules_list);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
wn.boot.modules_list = keys(erpnext.modules).sort();
|
wn.boot.modules_list = keys(erpnext.modules).sort();
|
||||||
|
|
||||||
@ -108,3 +91,19 @@ erpnext.toolbar.add_modules = function() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
erpnext.toolbar.set_new_comments = function(new_comments) {
|
||||||
|
var navbar_nc = $('.navbar-new-comments');
|
||||||
|
if(new_comments && new_comments.length>0) {
|
||||||
|
navbar_nc.text(new_comments.length);
|
||||||
|
navbar_nc.addClass('navbar-new-comments-true')
|
||||||
|
$.each(new_comments, function(i, v) {
|
||||||
|
var msg = 'New Message: ' + (v[1].length<=100 ? v[1] : (v[1].substr(0, 100) + "..."));
|
||||||
|
var id = v[0].replace('/', '-');
|
||||||
|
if(!$('#' + id)[0]) { show_alert(msg, id); }
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
navbar_nc.removeClass('navbar-new-comments-true');
|
||||||
|
navbar_nc.text(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -93,7 +93,6 @@ erpnext.startup.start = function() {
|
|||||||
wn.require("erpnext/startup/js/complete_setup.js");
|
wn.require("erpnext/startup/js/complete_setup.js");
|
||||||
erpnext.complete_setup.show();
|
erpnext.complete_setup.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(wn.boot.expires_on && in_list(user_roles, 'System Manager')) {
|
if(wn.boot.expires_on && in_list(user_roles, 'System Manager')) {
|
||||||
var today = dateutil.str_to_obj(dateutil.get_today());
|
var today = dateutil.str_to_obj(dateutil.get_today());
|
||||||
var expires_on = dateutil.str_to_obj(wn.boot.expires_on);
|
var expires_on = dateutil.str_to_obj(wn.boot.expires_on);
|
||||||
@ -111,6 +110,7 @@ erpnext.startup.start = function() {
|
|||||||
</div>', { expiry_string: expiry_string }));
|
</div>', { expiry_string: expiry_string }));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
erpnext.set_about();
|
erpnext.set_about();
|
||||||
@ -144,7 +144,7 @@ var update_messages = function(reset) {
|
|||||||
var set_messages = function(r) {
|
var set_messages = function(r) {
|
||||||
if(!r.exc) {
|
if(!r.exc) {
|
||||||
// This function is defined in toolbar.js
|
// This function is defined in toolbar.js
|
||||||
wn.container.wntoolbar.set_new_comments(r.message.unread_messages);
|
erpnext.toolbar.set_new_comments(r.message.unread_messages);
|
||||||
|
|
||||||
var show_in_circle = function(parent_id, msg) {
|
var show_in_circle = function(parent_id, msg) {
|
||||||
var parent = $('#'+parent_id);
|
var parent = $('#'+parent_id);
|
||||||
@ -174,7 +174,7 @@ var update_messages = function(reset) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
wn.container.wntoolbar.set_new_comments(0);
|
erpnext.toolbar.set_new_comments(0);
|
||||||
$('#unread_messages').toggle(false);
|
$('#unread_messages').toggle(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -927,7 +927,7 @@ if(this.df.options=='attach_files:'){this.file_attach=true;}}
|
|||||||
this.set_as_single=function(){var i=this.input;i.multiple=false;i.style.height=null;if(i.lab)$dh(i.lab)}
|
this.set_as_single=function(){var i=this.input;i.multiple=false;i.style.height=null;if(i.lab)$dh(i.lab)}
|
||||||
this.refresh_options=function(options){if(options)
|
this.refresh_options=function(options){if(options)
|
||||||
me.df.options=options;if(this.file_attach)
|
me.df.options=options;if(this.file_attach)
|
||||||
this.set_attach_options();me.options_list=me.df.options?me.df.options.split('\n'):[];empty_select(this.input);if(me.in_filter&&me.options_list[0]!=''){me.options_list=add_lists([''],me.options_list);}
|
this.set_attach_options();me.options_list=me.df.options?me.df.options.split('\n'):[''];empty_select(this.input);if(me.in_filter&&me.options_list[0]!=''){me.options_list=add_lists([''],me.options_list);}
|
||||||
add_sel_options(this.input,me.options_list);}
|
add_sel_options(this.input,me.options_list);}
|
||||||
this.onrefresh=function(){this.refresh_options();if(this.not_in_form){this.input.value='';return;}
|
this.onrefresh=function(){this.refresh_options();if(this.not_in_form){this.input.value='';return;}
|
||||||
if(_f.get_value)
|
if(_f.get_value)
|
||||||
@ -1396,9 +1396,7 @@ wn.ui.toolbar.RecentDocs=Class.extend({init:function(){$('.navbar .nav:first').a
|
|||||||
</li>');this.setup();this.bind_events();},bind_events:function(){var me=this;$(document).bind('rename',function(event,dt,old_name,new_name){me.rename_notify(dt,old_name,new_name)});},rename_notify:function(dt,old,name){this.remove(dt,old);this.add(dt,name,1);},add:function(dt,dn,on_top){if(this.istable(dt))return;this.remove(dt,dn);var html=repl('<li data-docref="%(dt)s/%(dn)s">\
|
</li>');this.setup();this.bind_events();},bind_events:function(){var me=this;$(document).bind('rename',function(event,dt,old_name,new_name){me.rename_notify(dt,old_name,new_name)});},rename_notify:function(dt,old,name){this.remove(dt,old);this.add(dt,name,1);},add:function(dt,dn,on_top){if(this.istable(dt))return;this.remove(dt,dn);var html=repl('<li data-docref="%(dt)s/%(dn)s">\
|
||||||
<a href="#Form/%(dt)s/%(dn)s">\
|
<a href="#Form/%(dt)s/%(dn)s">\
|
||||||
%(dn)s <span style="font-size: 10px">(%(dt)s)</span>\
|
%(dn)s <span style="font-size: 10px">(%(dt)s)</span>\
|
||||||
</a></li>',{dt:dt,dn:dn});if(on_top){$('#toolbar-recent').prepend(html);}else{$('#toolbar-recent').append(html);}},istable:function(dt){return locals.DocType[dt]&&locals.DocType[dt].istable||false;},remove:function(dt,dn){$(repl('#toolbar-recent li[data-docref="%(dt)s/%(dn)s"]',{dt:dt,dn:dn})).remove();},setup:function(){try{var rlist=JSON.parse(profile.recent);}
|
</a></li>',{dt:dt,dn:dn});if(on_top){$('#toolbar-recent').prepend(html);}else{$('#toolbar-recent').append(html);}},istable:function(dt){return locals.DocType[dt]&&locals.DocType[dt].istable||false;},remove:function(dt,dn){$(repl('#toolbar-recent li[data-docref="%(dt)s/%(dn)s"]',{dt:dt,dn:dn})).remove();},setup:function(){var rlist=JSON.parse(profile.recent||"[]");var m=rlist.length;if(m>15)m=15;for(var i=0;i<m;i++){var rd=rlist[i]
|
||||||
catch(e){return;}
|
|
||||||
var m=rlist.length;if(m>15)m=15;for(var i=0;i<m;i++){var rd=rlist[i]
|
|
||||||
if(rd[1]){var dt=rd[0];var dn=rd[1];this.add(dt,dn,0);}}}});
|
if(rd[1]){var dt=rd[0];var dn=rd[1];this.add(dt,dn,0);}}}});
|
||||||
/*
|
/*
|
||||||
* lib/js/wn/ui/toolbar/toolbar.js
|
* lib/js/wn/ui/toolbar/toolbar.js
|
||||||
@ -1612,7 +1610,7 @@ if(this.df.options=='attach_files:'){this.file_attach=true;}}
|
|||||||
this.set_as_single=function(){var i=this.input;i.multiple=false;i.style.height=null;if(i.lab)$dh(i.lab)}
|
this.set_as_single=function(){var i=this.input;i.multiple=false;i.style.height=null;if(i.lab)$dh(i.lab)}
|
||||||
this.refresh_options=function(options){if(options)
|
this.refresh_options=function(options){if(options)
|
||||||
me.df.options=options;if(this.file_attach)
|
me.df.options=options;if(this.file_attach)
|
||||||
this.set_attach_options();me.options_list=me.df.options?me.df.options.split('\n'):[];empty_select(this.input);if(me.in_filter&&me.options_list[0]!=''){me.options_list=add_lists([''],me.options_list);}
|
this.set_attach_options();me.options_list=me.df.options?me.df.options.split('\n'):[''];empty_select(this.input);if(me.in_filter&&me.options_list[0]!=''){me.options_list=add_lists([''],me.options_list);}
|
||||||
add_sel_options(this.input,me.options_list);}
|
add_sel_options(this.input,me.options_list);}
|
||||||
this.onrefresh=function(){this.refresh_options();if(this.not_in_form){this.input.value='';return;}
|
this.onrefresh=function(){this.refresh_options();if(this.not_in_form){this.input.value='';return;}
|
||||||
if(_f.get_value)
|
if(_f.get_value)
|
||||||
@ -2220,7 +2218,7 @@ $(favicon).appendTo('head');}})
|
|||||||
/*
|
/*
|
||||||
* js/app.js
|
* js/app.js
|
||||||
*/
|
*/
|
||||||
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.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'});}
|
||||||
wn.modules_path='erpnext';$(document).bind('toolbar_setup',function(){$('.brand').html('<b>erp</b>next\
|
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');});});
|
<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');});});
|
||||||
/*
|
/*
|
||||||
@ -2247,9 +2245,9 @@ else if(nm=='Accounts Browser')
|
|||||||
pscript.make_chart(chart_type);}
|
pscript.make_chart(chart_type);}
|
||||||
loadpage(nm,call_back);}
|
loadpage(nm,call_back);}
|
||||||
var update_messages=function(reset){if(inList(['Guest'],user)||!wn.session_alive){return;}
|
var update_messages=function(reset){if(inList(['Guest'],user)||!wn.session_alive){return;}
|
||||||
if(!reset){var set_messages=function(r){if(!r.exc){wn.container.wntoolbar.set_new_comments(r.message.unread_messages);var show_in_circle=function(parent_id,msg){var parent=$('#'+parent_id);if(parent){if(msg){parent.find('span:first').text(msg);parent.toggle(true);}else{parent.toggle(false);}}}
|
if(!reset){var set_messages=function(r){if(!r.exc){erpnext.toolbar.set_new_comments(r.message.unread_messages);var show_in_circle=function(parent_id,msg){var parent=$('#'+parent_id);if(parent){if(msg){parent.find('span:first').text(msg);parent.toggle(true);}else{parent.toggle(false);}}}
|
||||||
show_in_circle('unread_messages',r.message.unread_messages.length);show_in_circle('open_support_tickets',r.message.open_support_tickets);show_in_circle('things_todo',r.message.things_todo);show_in_circle('todays_events',r.message.todays_events);}else{clearInterval(wn.updates.id);}}
|
show_in_circle('unread_messages',r.message.unread_messages.length);show_in_circle('open_support_tickets',r.message.open_support_tickets);show_in_circle('things_todo',r.message.things_todo);show_in_circle('todays_events',r.message.todays_events);}else{clearInterval(wn.updates.id);}}
|
||||||
wn.call({method:'startup.startup.get_global_status_messages',callback:set_messages});}else{wn.container.wntoolbar.set_new_comments(0);$('#unread_messages').toggle(false);}}
|
wn.call({method:'startup.startup.get_global_status_messages',callback:set_messages});}else{erpnext.toolbar.set_new_comments(0);$('#unread_messages').toggle(false);}}
|
||||||
erpnext.startup.set_periodic_updates=function(){wn.updates={};if(wn.updates.id){clearInterval(wn.updates.id);}
|
erpnext.startup.set_periodic_updates=function(){wn.updates={};if(wn.updates.id){clearInterval(wn.updates.id);}
|
||||||
wn.updates.id=setInterval(update_messages,60000);}
|
wn.updates.id=setInterval(update_messages,60000);}
|
||||||
erpnext.set_user_background=function(src){set_style(repl('#body_div { background: url("files/%(src)s") repeat;}',{src:src}))}
|
erpnext.set_user_background=function(src){set_style(repl('#body_div { background: url("files/%(src)s") repeat;}',{src:src}))}
|
||||||
@ -2280,15 +2278,14 @@ $('#toolbar-help').append('<li><a href="http://groups.google.com/group/erpnext-u
|
|||||||
Forum</a></li>')
|
Forum</a></li>')
|
||||||
$('#toolbar-help').append('<li><a href="http://www.providesupport.com?messenger=iwebnotes" target="_blank">\
|
$('#toolbar-help').append('<li><a href="http://www.providesupport.com?messenger=iwebnotes" target="_blank">\
|
||||||
Live Chat (Office Hours)</a></li>')
|
Live Chat (Office Hours)</a></li>')
|
||||||
$.extend(wn.container.wntoolbar,{set_new_comments:function(new_comments){var navbar_nc=$('.navbar-new-comments');if(new_comments&&new_comments.length>0){navbar_nc.text(new_comments.length);navbar_nc.addClass('navbar-new-comments-true')
|
erpnext.toolbar.set_new_comments();}
|
||||||
$.each(new_comments,function(i,v){var msg='New Message: '+(v[1].length<=100?v[1]:(v[1].substr(0,100)+"..."));var id=v[0].replace('/','-');if(!$('#'+id)[0]){show_alert(msg,id);}})}else{navbar_nc.removeClass('navbar-new-comments-true');navbar_nc.text(0);}}});wn.container.wntoolbar.set_new_comments();}
|
|
||||||
erpnext.toolbar.add_modules=function(){$('<li class="dropdown">\
|
erpnext.toolbar.add_modules=function(){$('<li class="dropdown">\
|
||||||
<a class="dropdown-toggle" data-toggle="dropdown" href="#"\
|
<a class="dropdown-toggle" data-toggle="dropdown" href="#"\
|
||||||
onclick="return false;">Modules<b class="caret"></b></a>\
|
onclick="return false;">Modules<b class="caret"></b></a>\
|
||||||
<ul class="dropdown-menu modules">\
|
<ul class="dropdown-menu modules">\
|
||||||
</ul>\
|
</ul>\
|
||||||
</li>').prependTo('.navbar .nav:first');if(wn.boot.modules_list)
|
</li>').prependTo('.navbar .nav:first');if(wn.boot.modules_list&&typeof(wn.boot.modules_list)=='string'){wn.boot.modules_list=JSON.parse(wn.boot.modules_list);}
|
||||||
wn.boot.modules_list=JSON.parse(wn.boot.modules_list);else
|
else
|
||||||
wn.boot.modules_list=keys(erpnext.modules).sort();for(var i in wn.boot.modules_list){var m=wn.boot.modules_list[i]
|
wn.boot.modules_list=keys(erpnext.modules).sort();for(var i in wn.boot.modules_list){var m=wn.boot.modules_list[i]
|
||||||
if(m!='Setup'&&wn.boot.profile.allow_modules.indexOf(m)!=-1){args={module:m,module_page:erpnext.modules[m],module_label:m=='HR'?'Human Resources':m}
|
if(m!='Setup'&&wn.boot.profile.allow_modules.indexOf(m)!=-1){args={module:m,module_page:erpnext.modules[m],module_label:m=='HR'?'Human Resources':m}
|
||||||
$('.navbar .modules').append(repl('<li><a href="#!%(module_page)s" \
|
$('.navbar .modules').append(repl('<li><a href="#!%(module_page)s" \
|
||||||
@ -2297,6 +2294,8 @@ if(user_roles.indexOf("Accounts Manager")!=-1){$('.navbar .modules').append('<li
|
|||||||
data-module="Dashboard">Dashboard</a></li>');}
|
data-module="Dashboard">Dashboard</a></li>');}
|
||||||
if(user_roles.indexOf("System Manager")!=-1){$('.navbar .modules').append('<li class="divider"></li>\
|
if(user_roles.indexOf("System Manager")!=-1){$('.navbar .modules').append('<li class="divider"></li>\
|
||||||
<li><a href="#!Setup" data-module="Setup">Setup</a></li>');}}
|
<li><a href="#!Setup" data-module="Setup">Setup</a></li>');}}
|
||||||
|
erpnext.toolbar.set_new_comments=function(new_comments){var navbar_nc=$('.navbar-new-comments');if(new_comments&&new_comments.length>0){navbar_nc.text(new_comments.length);navbar_nc.addClass('navbar-new-comments-true')
|
||||||
|
$.each(new_comments,function(i,v){var msg='New Message: '+(v[1].length<=100?v[1]:(v[1].substr(0,100)+"..."));var id=v[0].replace('/','-');if(!$('#'+id)[0]){show_alert(msg,id);}})}else{navbar_nc.removeClass('navbar-new-comments-true');navbar_nc.text(0);}}
|
||||||
/*
|
/*
|
||||||
* erpnext/startup/js/feature_setup.js
|
* erpnext/startup/js/feature_setup.js
|
||||||
*/
|
*/
|
||||||
|
@ -829,7 +829,7 @@ $(favicon).appendTo('head');}})
|
|||||||
/*
|
/*
|
||||||
* js/app.js
|
* js/app.js
|
||||||
*/
|
*/
|
||||||
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.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'});}
|
||||||
wn.modules_path='erpnext';$(document).bind('toolbar_setup',function(){$('.brand').html('<b>erp</b>next\
|
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');});});
|
<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');});});
|
||||||
/*
|
/*
|
||||||
@ -856,9 +856,9 @@ else if(nm=='Accounts Browser')
|
|||||||
pscript.make_chart(chart_type);}
|
pscript.make_chart(chart_type);}
|
||||||
loadpage(nm,call_back);}
|
loadpage(nm,call_back);}
|
||||||
var update_messages=function(reset){if(inList(['Guest'],user)||!wn.session_alive){return;}
|
var update_messages=function(reset){if(inList(['Guest'],user)||!wn.session_alive){return;}
|
||||||
if(!reset){var set_messages=function(r){if(!r.exc){wn.container.wntoolbar.set_new_comments(r.message.unread_messages);var show_in_circle=function(parent_id,msg){var parent=$('#'+parent_id);if(parent){if(msg){parent.find('span:first').text(msg);parent.toggle(true);}else{parent.toggle(false);}}}
|
if(!reset){var set_messages=function(r){if(!r.exc){erpnext.toolbar.set_new_comments(r.message.unread_messages);var show_in_circle=function(parent_id,msg){var parent=$('#'+parent_id);if(parent){if(msg){parent.find('span:first').text(msg);parent.toggle(true);}else{parent.toggle(false);}}}
|
||||||
show_in_circle('unread_messages',r.message.unread_messages.length);show_in_circle('open_support_tickets',r.message.open_support_tickets);show_in_circle('things_todo',r.message.things_todo);show_in_circle('todays_events',r.message.todays_events);}else{clearInterval(wn.updates.id);}}
|
show_in_circle('unread_messages',r.message.unread_messages.length);show_in_circle('open_support_tickets',r.message.open_support_tickets);show_in_circle('things_todo',r.message.things_todo);show_in_circle('todays_events',r.message.todays_events);}else{clearInterval(wn.updates.id);}}
|
||||||
wn.call({method:'startup.startup.get_global_status_messages',callback:set_messages});}else{wn.container.wntoolbar.set_new_comments(0);$('#unread_messages').toggle(false);}}
|
wn.call({method:'startup.startup.get_global_status_messages',callback:set_messages});}else{erpnext.toolbar.set_new_comments(0);$('#unread_messages').toggle(false);}}
|
||||||
erpnext.startup.set_periodic_updates=function(){wn.updates={};if(wn.updates.id){clearInterval(wn.updates.id);}
|
erpnext.startup.set_periodic_updates=function(){wn.updates={};if(wn.updates.id){clearInterval(wn.updates.id);}
|
||||||
wn.updates.id=setInterval(update_messages,60000);}
|
wn.updates.id=setInterval(update_messages,60000);}
|
||||||
erpnext.set_user_background=function(src){set_style(repl('#body_div { background: url("files/%(src)s") repeat;}',{src:src}))}
|
erpnext.set_user_background=function(src){set_style(repl('#body_div { background: url("files/%(src)s") repeat;}',{src:src}))}
|
||||||
|
@ -7,7 +7,7 @@ erpnext.set_about = function() {
|
|||||||
source: 'https://github.com/webnotes/erpnext',
|
source: 'https://github.com/webnotes/erpnext',
|
||||||
publisher: 'Web Notes Technologies Pvt Ltd, Mumbai',
|
publisher: 'Web Notes Technologies Pvt Ltd, Mumbai',
|
||||||
copyright: '© Web Notes Technologies Pvt Ltd',
|
copyright: '© Web Notes Technologies Pvt Ltd',
|
||||||
version: '2.' + window._version_number
|
version: '2' //+ '.' + window._version_number
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user