Fix: Minor clean up

This commit is contained in:
Sarah Tsumayoi 2019-06-10 21:34:12 -04:00 committed by GitHub
parent 677f073476
commit e043585665
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,7 +106,7 @@ humhub.module('ui.markdown', function (module, require, $) {
var uploadWidget = Widget.instance('#markdown-file-upload');
uploadWidget.$form = $(this.$.closest('form'));
if(this.options.filesInputName) {
if (this.options.filesInputName) {
uploadWidget.options.uploadSubmitName = this.options.filesInputName;
} else {
uploadWidget.options.uploadSubmitName = uploadWidget.data('upload-submit-name');
@ -197,4 +197,4 @@ humhub.module('ui.markdown', function (module, require, $) {
init: init,
MarkdownField: MarkdownField
});
});
});