User:Evad37/Covery/sandbox.js: Difference between revisions

Content deleted Content added
.
.
Line 611:
CoveryDialog.prototype.onTitleInputFlag = function(flag) {
if (flag.invalid === true) {
if (this.titleInput.getValue().length) {
this.titleInputField.setErrors(['Invalid file name']);
}
this.actions.setAbilities({
upload: false
Line 652 ⟶ 654:
if (!titleHasCorrectExtension && self.resizedFile) {
self.titleInputField.setErrors([
'Invalid file extension (file is ana ' +
self.resizedFile.type
.replace('image/', '')