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

Content deleted Content added
.
.
Line 651:
var titleHasCorrectExtension = self.checkMimes();
if (!titleHasCorrectExtension && self.resizedFile) {
self.titleInputField.setErrors([
'UnexpectedInvalid file extension (file is an ']); +
self.resizedFile.type
.replace('image/', '')
.replace(/\+.*$/, '')
.toUpperCase() +
' image)'
]);
}
 
Line 667 ⟶ 674:
},
function() {
thisself.titleInputField.setErrors(['Invalid file name']);
self.actions.setAbilities({
upload: false