Skip to content

Commit a04baae

Browse files
Pyae HeinPyae Hein
authored andcommitted
Fired change event after set values
1 parent a774800 commit a04baae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

public/js/lfm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
function SetUrl(url, file_path){
1919
//set the value of the desired input to image url
2020
var target_input = $('#' + localStorage.getItem('target_input'));
21-
target_input.val(file_path);
21+
target_input.val(file_path).trigger('change');
2222

2323
//set or change the preview image src
2424
var target_preview = $('#' + localStorage.getItem('target_preview'));
25-
target_preview.attr('src', url);
25+
target_preview.attr('src', url).trigger('change');
2626
}

0 commit comments

Comments
 (0)