Browse path starting from from current value

This commit is contained in:
JonnyWong16 2020-07-18 15:19:42 -07:00
commit a675202537
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
5 changed files with 23 additions and 32 deletions

View file

@ -53,7 +53,7 @@
<div class="input-group">
<input type="${item['input_type']}" class="form-control" id="${item['name']}" name="${item['name']}" value="${item['value']}" size="30" ${'readonly' if item.get('readonly') else ''}>
<span class="input-group-btn">
<button class="btn btn-form" type="button" id="${item['name']}_browse" data-filter=".folderonly" data-target="#${item['name']}">Browse</button>
<button class="btn btn-form" type="button" id="${item['name']}_browse" data-toggle="browse" data-filter=".folderonly" data-target="#${item['name']}">Browse</button>
</span>
</div>
% else:
@ -702,13 +702,6 @@
var plexmobileapp_user_ids = $plexmobileapp_user_ids[0].selectize;
plexmobileapp_user_ids.setValue(${json.dumps(next((c['value'] for c in notifier['config_options'] if c['name'] == 'plexmobileapp_user_ids'), [])) | n});
% elif notifier['agent_name'] == 'scripts':
$("#scripts_script_folder_browse").click(function () {
var filter = $(this).data('filter');
var target = $(this).data('target');
openBrowsePath(null, null, filter, $("label[for='" + target.replace('#', '') + "']").text(), target);
});
% endif
function validateLogic() {