Skip to content

Commit efbc805

Browse files
author
tobalsan
authored
Fix callback test
A simple correction that prevented a callback to be executed if provided.
1 parent 9677124 commit efbc805

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/js/jquery.uploadPreview.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
reader.readAsDataURL(file);
5151

5252
// Success callback function call
53-
if(!settings.success_callback) {
53+
if(settings.success_callback) {
5454
settings.success_callback();
5555
}
5656
} else {

0 commit comments

Comments
 (0)