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

@@ -27,7 +27,7 @@
<div class="col-xs-12">
<div class="input-group">
<span class="input-group-btn">
<button class="btn btn-form" type="button" id="import_config_path_browse">Browse</button>
<button class="btn btn-form" type="button" id="import_config_path_browse" data-target="#import_config_path">Browse</button>
</span>
<input type="text" class="form-control" id="import_config_path" name="import_config_path" value="" placeholder="config.ini" required disabled>
</div>
@@ -63,7 +63,7 @@
</div>
<script>
$("#import_config_path_browse").click(function () {
openBrowsePath(null, null, '.ini', 'Configuration File', 'import_config_path');
openBrowsePath(null, null, '.ini', 'Configuration File', $(this).data('target'));
});
$("#import_config_file").change(function() {