Skip to content

Commit d5cca11

Browse files
committed
Issues-336: renamed to 'resetFileInput'
1 parent c2315ee commit d5cca11

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

js/topcodereditor.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
return CodeMirror.Pass;
130130
}
131131

132-
function clearInputFile(editor){
132+
function resetFileInput(editor){
133133
var imageInput = editor.gui.toolbar.getElementsByClassName('imageInput')[0];
134134
imageInput.value ='';
135135
}
@@ -141,15 +141,15 @@
141141
onSuccess = function onSuccess(jsonData) {
142142
updateMediaIDs(self, jsonData);
143143
afterFileUploaded(self, jsonData, position);
144-
clearInputFile(self);
144+
resetFileInput(self);
145145
};
146146

147147
onError = function onError(errorMessage) {
148148
showErrorMessage(self,errorMessage);
149149
if(position && position.start && position.end) {
150150
self.codemirror.replaceRange("", position.start, position.end);
151151
}
152-
clearInputFile(self);
152+
resetFileInput(self);
153153
}
154154

155155
function onErrorSup(errorMessage) {

0 commit comments

Comments
 (0)