mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
Add filter extension as data property
This commit is contained in:
parent
ec34ea2116
commit
fcca7f969e
2 changed files with 4 additions and 4 deletions
|
@ -40,7 +40,7 @@
|
|||
<div class="col-xs-12">
|
||||
<div class="input-group">
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-form" type="button" id="import_database_path_browse" data-target="#import_database_path">Browse</button>
|
||||
<button class="btn btn-form" type="button" id="import_database_path_browse" data-filter=".db" data-target="#import_database_path">Browse</button>
|
||||
</span>
|
||||
<input type="text" class="form-control" id="import_database_path" name="import_database_path" value="" placeholder="tautulli.db" required disabled>
|
||||
</div>
|
||||
|
@ -115,7 +115,7 @@
|
|||
</div>
|
||||
<script>
|
||||
$("#import_database_path_browse").click(function () {
|
||||
openBrowsePath(null, null, '.db', 'Database File', $(this).data('target'));
|
||||
openBrowsePath(null, null, $(this).data('filter'), 'Database File', $(this).data('target'));
|
||||
});
|
||||
|
||||
$("#import_database_file").change(function() {
|
||||
|
|
|
@ -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" data-target="#import_config_path">Browse</button>
|
||||
<button class="btn btn-form" type="button" id="import_config_path_browse" data-filter=".ini" 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', $(this).data('target'));
|
||||
openBrowsePath(null, null, $(this).data('filter'), 'Configuration File', $(this).data('target'));
|
||||
});
|
||||
|
||||
$("#import_config_file").change(function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue