From a6952c935c9fb91a8ca7faec9e7115e6ad852dc9 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Wed, 7 Mar 2012 19:37:23 +0530 Subject: [PATCH] doctype refactor first commit --- erpnext/utilities/page/users/users.js | 2 +- js/all-app.js | 6 +++--- version.num | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/erpnext/utilities/page/users/users.js b/erpnext/utilities/page/users/users.js index 130e5385d1..f87dbe18ff 100644 --- a/erpnext/utilities/page/users/users.js +++ b/erpnext/utilities/page/users/users.js @@ -232,7 +232,7 @@ $.extend(wn.pages.users, { $c_page('utilities', 'users', 'add_user', v, function(r,rt) { if(r.exc) { msgprint(r.exc); return; } else { - wn.boot.user_info[v.user] = {fullname:v.first_name + ' ' + v.last_name}; + wn.boot.user_info[v.user] = {fullname:v.first_name + ' ' + (v.last_name || '')}; d.hide(); me.refresh(); } diff --git a/js/all-app.js b/js/all-app.js index 686b0b846e..14a613a343 100644 --- a/js/all-app.js +++ b/js/all-app.js @@ -1680,8 +1680,8 @@ this.layout.wrapper.style.backgroundColor='#'+this.meta.colour.split(':')[1];thi this.add_description();} _f.Frm.prototype.add_description=function(){if(!wn.md2html){wn.require('lib/js/lib/showdown.js');wn.md2html=new Showdown.converter();} this.description_wrapper=$a(this.page_layout.footer.help_area,'div','info-box',{marginTop:'10px'},wn.md2html.makeHtml('#### Help\n\n'+this.meta.description));} -_f.Frm.prototype.setup_print=function(){var fl=getchildren('DocFormat',this.meta.name,'formats','DocType');var l=[];this.default_format='Standard';if(fl.length){this.default_format=fl[0].format;for(var i=0;i