File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 129
129
return CodeMirror . Pass ;
130
130
}
131
131
132
- function clearInputFile ( editor ) {
132
+ function resetFileInput ( editor ) {
133
133
var imageInput = editor . gui . toolbar . getElementsByClassName ( 'imageInput' ) [ 0 ] ;
134
134
imageInput . value = '' ;
135
135
}
141
141
onSuccess = function onSuccess ( jsonData ) {
142
142
updateMediaIDs ( self , jsonData ) ;
143
143
afterFileUploaded ( self , jsonData , position ) ;
144
- clearInputFile ( self ) ;
144
+ resetFileInput ( self ) ;
145
145
} ;
146
146
147
147
onError = function onError ( errorMessage ) {
148
148
showErrorMessage ( self , errorMessage ) ;
149
149
if ( position && position . start && position . end ) {
150
150
self . codemirror . replaceRange ( "" , position . start , position . end ) ;
151
151
}
152
- clearInputFile ( self ) ;
152
+ resetFileInput ( self ) ;
153
153
}
154
154
155
155
function onErrorSup ( errorMessage ) {
You can’t perform that action at this time.
0 commit comments