diff --git a/public/js/legacy/widgets/form/fields.js b/public/js/legacy/widgets/form/fields.js index 06b477e9f3..48c98b6fc2 100644 --- a/public/js/legacy/widgets/form/fields.js +++ b/public/js/legacy/widgets/form/fields.js @@ -1295,11 +1295,11 @@ _f.ButtonField.prototype.make_input = function() { var me = this; } _f.ButtonField.prototype.hide = function() { - $dh(this.button_area); + $dh(this.wrapper); }; _f.ButtonField.prototype.show = function() { - $ds(this.button_area); + $ds(this.wrapper); }; diff --git a/public/js/wn/form/formatters.js b/public/js/wn/form/formatters.js index 0041ad7c0d..9b62596e16 100644 --- a/public/js/wn/form/formatters.js +++ b/public/js/wn/form/formatters.js @@ -11,7 +11,8 @@ wn.form.formatters = { parseInt(wn.boot.sysdefaults.float_precision) : null; return "
" + - format_number(value, null, decimals) + "
"; + ((value==null || value==="") ? "" : + format_number(value, null, decimals)) + ""; }, Int: function(value) { return cint(value); diff --git a/public/js/wn/views/communication.js b/public/js/wn/views/communication.js index 935eca8791..aac4f66b7b 100644 --- a/public/js/wn/views/communication.js +++ b/public/js/wn/views/communication.js @@ -205,7 +205,6 @@ wn.views.CommunicationComposer = Class.extend({ }) _p.build(form_values.select_print_format || "", function(print_format_html) { - me.dialog.hide(); if(form_values.attach_document_print) { var print_html = print_format_html if(cint(wn.boot.send_print_in_body_and_attachment)) { @@ -238,7 +237,10 @@ wn.views.CommunicationComposer = Class.extend({ if(!r.exc) { if(form_values.send_email) msgprint("Email sent to " + form_values.recipients); + me.dialog.hide(); cur_frm.reload_doc(); + } else { + msgprint("There were errors while sending email. Please try again.") } } }); diff --git a/public/js/wn/views/query_report.js b/public/js/wn/views/query_report.js index 3ccb03acf1..c9958dca7d 100644 --- a/public/js/wn/views/query_report.js +++ b/public/js/wn/views/query_report.js @@ -129,7 +129,8 @@ wn.views.QueryReport = Class.extend({ .css({ "display": "inline-block", "margin-left": "5px", - "margin-bottom": "2px" + "margin-bottom": "4px", + "margin-top": "4px" }) .attr("title", df.label).tooltip(); me.filters.push(f); diff --git a/templates/pages/login.html b/templates/pages/login.html index 4ae23a0df2..bc748fe4f8 100644 --- a/templates/pages/login.html +++ b/templates/pages/login.html @@ -46,9 +46,12 @@

Forgot Password

+ + {% if not disable_signup %}

New user? Sign Up

+ {% endif %}