added description for column breaks, show email sent message in assign to

This commit is contained in:
Anand Doshi 2013-02-25 13:12:16 +05:30
parent 9c2968b7ce
commit 3003c12f91
2 changed files with 10 additions and 1 deletions

View file

@ -37,6 +37,11 @@ _f.ColumnBreak.prototype.make_body = function() {
// header
if(this.df&&this.df.label){
this.label = $a(this.cell.wrapper, 'h4', '', '', wn._(this.df.label));
if(this.df.description)
$('<div class="help small" style="margin-top: 4px; margin-bottom: 8px;">'
+wn._(this.df.description)+'</div>')
.appendTo(this.cell.wrapper)
}
}

View file

@ -131,7 +131,11 @@ wn.ui.form.AssignTo = Class.extend({
notify: me.dialog.fields_dict.notify.get_value()
},
callback: function(r,rt) {
me.render(r.message);
if(!r.exc) {
if(cint(me.dialog.fields_dict.notify.get_value()))
msgprint("Email sent to " + assign_to);
me.render(r.message);
}
}
});
}