[fix] [hot] upload.js template
This commit is contained in:
parent
5452887ca1
commit
5d184c0c7d
1 changed files with 4 additions and 4 deletions
|
|
@ -162,7 +162,7 @@ frappe.upload = {
|
|||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>`
|
||||
</div>`;
|
||||
|
||||
return $(template);
|
||||
},
|
||||
|
|
@ -337,7 +337,7 @@ frappe.upload = {
|
|||
fields.push({'fieldname': 'label1', 'fieldtype': 'Heading', 'label': filename});
|
||||
fields.push({'fieldname': filename+'_is_private', 'fieldtype': 'Check', 'label': 'Private', 'default': 1});
|
||||
}
|
||||
|
||||
|
||||
var d = new frappe.ui.Dialog({
|
||||
'title': __('Make file(s) private or public?'),
|
||||
'fields': fields,
|
||||
|
|
@ -349,9 +349,9 @@ frappe.upload = {
|
|||
args.is_private = d.fields_dict[fileobjs[i].name + "_is_private"].get_value()
|
||||
frappe.upload.upload_file(fileobjs[i], args, opts);
|
||||
i++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
opts.loopcallback();
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue