Commit 55e41041 authored by echel0n's avatar echel0n
Browse files

Fixed issue where click event for adding root folders was being fired more then twice.

Fixed issue #261 - skip download button not enabling save defaults.
parent ec16f205
# Changelog
- * 0144134 - 2018-08-25: Suppressed InsecureRequestWarnings
- * c28d0b8 - 2018-08-26: Fixed issue where click event for adding root folders was being fired more then twice.
- * ec16f20 - 2018-08-25: Suppressed InsecureRequestWarnings
- * 8b6981b - 2018-08-25: Fixed unicode issues with timezone updater
- * 9797220 - 2018-08-25: Fixed spacing for status view
- * 8279ece - 2018-08-24: Fixed quality badge for manual searches
......
......@@ -21,8 +21,7 @@
<span class="fas fa-folder-open"></span>
</span>
</div>
<select name="rootDir" id="rootDirs" size="6" class="form-control"
title="${_('Root Directories')}">
<select name="rootDir" id="rootDirs" size="6" class="form-control" title="${_('Root Directories')}">
% for cur_dir in backend_dirs:
<option value="${cur_dir}">${cur_dir}</option>
% endfor
......
......@@ -1038,7 +1038,8 @@ $(document).ready(function ($) {
}
}
$('#addRootDir').click(function () {
$('#addRootDir').click(function (e) {
e.stopImmediatePropagation();
$(this).nFileBrowser(SICKRAGE.root_dirs.addRootDir);
});
......@@ -1118,6 +1119,8 @@ $(document).ready(function ($) {
SICKRAGE.root_dirs.refreshRootDirs();
$.get(SICKRAGE.srWebRoot + '/config/general/saveRootDirs', {rootDirString: $('#rootDirText').val()});
location.reload();
},
editRootDir: function (path) {
......@@ -1214,7 +1217,7 @@ $(document).ready(function ($) {
//logString += 'def: ' + $('#whichDefaultRootDir').val();
$('#rootDirText').val(dirString);
$('#rootDirText').change();
//$('#rootDirText').change();
}
},
......@@ -2748,7 +2751,7 @@ $(document).ready(function ($) {
anime: $('#anime').prop('checked'),
scene: $('#scene').prop('checked'),
defaultStatusAfter: $('#statusSelectAfter').val(),
archive: $('#archive').prop('checked')
archive: $('#skip_downloaded').prop('checked')
});
$(this).attr('disabled', true);
......@@ -2756,7 +2759,7 @@ $(document).ready(function ($) {
SICKRAGE.notify('info', gt('Saved Defaults'), gt('Your "add show" defaults have been set to your current selections.'));
});
$('#statusSelect, #qualityPreset, #flatten_folders, #anyQualities, #bestQualities, #subtitles, #scene, #anime, #statusSelectAfter, #archive').change(function () {
$('#statusSelect, #qualityPreset, #flatten_folders, #anyQualities, #bestQualities, #subtitles, #scene, #anime, #statusSelectAfter, #skip_downloaded').change(function () {
$('#saveDefaultsButton').attr('disabled', false);
});
},
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment