Trigger change and unbind after selecting in file browser

This commit is contained in:
JonnyWong16
2020-07-16 19:05:18 -07:00
parent 3dc36c3b92
commit ec34ea2116
3 changed files with 6 additions and 5 deletions

View File

@@ -2033,7 +2033,8 @@ Rating: {rating}/10 --> Rating: /10
$("#select-browse-file").click(function () {
$("#browse-path-modal").modal('hide');
$("#" + select_target).val($("#browse-path").val());
$(select_target).val($("#browse-path").val()).change();
$(this).unbind('click');
});
browsePath(key, path, filter_ext);