[form] usability fixes
This commit is contained in:
parent
f988b22b52
commit
2b846cfd0a
6 changed files with 11 additions and 6 deletions
|
|
@ -64,6 +64,7 @@ def make(doctype=None, name=None, content=None, subject=None,
|
|||
d.communication_medium = communication_medium
|
||||
if send_email:
|
||||
send_comm_email(d, name, sent_via, print_html, attachments, send_me_a_copy)
|
||||
webnotes.msgprint(d.fields)
|
||||
d.save(1, ignore_fields=True)
|
||||
|
||||
def send_comm_email(d, name, sent_via=None, print_html=None, attachments='[]', send_me_a_copy=False):
|
||||
|
|
|
|||
|
|
@ -204,7 +204,7 @@ a {
|
|||
.missing-image {
|
||||
background-color: #eee;
|
||||
padding: 40px;
|
||||
width: 32px;
|
||||
width: 112px;
|
||||
font-size: 32px;
|
||||
color: #888;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -492,6 +492,13 @@ wn.ui.form.ControlSelect = wn.ui.form.ControlData.extend({
|
|||
me.frm.attachments.new_attachment();
|
||||
})
|
||||
.appendTo(this.input_area);
|
||||
|
||||
$(document).on("upload_complete", function(event, filename, file_url) {
|
||||
if(cur_frm === me.frm) {
|
||||
me.set_options();
|
||||
me.set_input(filename ? ("files/" + filename) : file_url);
|
||||
}
|
||||
})
|
||||
},
|
||||
set_options: function() {
|
||||
var options = this.df.options || [];
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ wn.ui.form.Layout = Class.extend({
|
|||
var me = this;
|
||||
this.wrapper.on("keydown", function(ev) {
|
||||
if(ev.which==9) {
|
||||
var current = $(ev.target),
|
||||
var current = $(ev.target).trigger("change"),
|
||||
doctype = current.attr("data-doctype"),
|
||||
fieldname = current.attr("data-fieldname");
|
||||
if(doctype)
|
||||
|
|
|
|||
|
|
@ -121,9 +121,6 @@ wn.views.ListView = Class.extend({
|
|||
$.each(this.columns,
|
||||
function(i, c) { if(c.content==="name") { c.colspan = 4; return false; } });
|
||||
}
|
||||
|
||||
console.log(this.columns);
|
||||
|
||||
},
|
||||
render: function(row, data) {
|
||||
this.prepare_data(data);
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ wn.views.QueryReport = Class.extend({
|
|||
if(me.report_name!=route[1]) {
|
||||
me.report_name = route[1];
|
||||
this.wrapper.find(".no-report-area").toggle(false);
|
||||
me.appframe.title(wn._("Query Report")+": " + me.report_name);
|
||||
me.appframe.set_title(wn._("Query Report")+": " + me.report_name);
|
||||
|
||||
if(!wn.query_reports[me.report_name]) {
|
||||
wn.call({
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue