[fix] [hot] upload.js template

This commit is contained in:
Rushabh Mehta 2017-04-10 13:17:54 +05:30
parent 5452887ca1
commit 5d184c0c7d

View file

@ -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();
}