Implemented slider instead of return false on key down.

pull/1038/head
Louis Vézina 4 years ago
parent 303182471c
commit 52ef2ee746

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -38,6 +38,7 @@
<link rel="stylesheet" type="text/css"
href="{{ url_for('static',filename='plugins/datatables.net-bs4/css/dataTables.bootstrap4.min.css') }}">
<link rel="stylesheet" href="{{ url_for('static',filename='css/bootstrap-select.css') }}"/>
<link rel="stylesheet" href="{{ url_for('static',filename='css/bootstrap-slider.min.css') }}"/>
<link rel="stylesheet" href="{{ url_for('static',filename='css/jquery.typeahead.min.css') }}"/>
{% endblock head_css %}
@ -321,6 +322,7 @@
<script src="{{ url_for('static',filename='js/custom.js') }}"></script>
<script src="{{ url_for('static',filename='js/socket.io.js') }}"></script>
<script src="{{ url_for('static',filename='js/bootstrap-select.min.js') }}"></script>
<script src="{{ url_for('static',filename='js/bootstrap-slider.min.js') }}"></script>
<script src="{{ url_for('static',filename='moment/moment.js') }}"></script>
<script src="{{ url_for('static',filename='js/jquery.typeahead.min.js') }}"></script>
@ -341,6 +343,11 @@
$('[data-toggle="tooltip"]').tooltip({html: true});
});
$(".slider").slider({
tooltip: 'always',
tooltip_position: 'bottom'
});
events = io.connect({
path: '{{ settings.general.base_url.rstrip('/') }}/socket.io',
transports: ['polling'],

@ -112,8 +112,8 @@
<div class="col-sm-3 text-right">
<b>Minimum Score</b>
</div>
<div class="col-sm-1">
<input type="number" min="0" max="100" step="1" onkeydown="return false" class="form-control" id="settings-general-minimum_score_movie" name="settings-general-minimum_score_movie" value="{{settings.general.minimum_score_movie}}">
<div class="col-sm-8">
<input class="slider" id="settings-general-minimum_score_movie" name="settings-general-minimum_score_movie" data-slider-id='settings-general-minimum_score_movie' type="text" data-slider-min="1" data-slider-max="100" data-slider-step="1" data-slider-value="{{settings.general.minimum_score_movie}}"/>
</div>
</div>
<div class="row">

@ -112,8 +112,8 @@
<div class="col-sm-3 text-right">
<b>Minimum Score</b>
</div>
<div class="col-sm-1">
<input type="number" min="0" max="100" step="1" onkeydown="return false" class="form-control" id="settings-general-minimum_score" name="settings-general-minimum_score" value="{{settings.general.minimum_score}}">
<div class="col-sm-8">
<input class="slider" id="settings-general-minimum_score" name="settings-general-minimum_score" data-slider-id='settings-general-minimum_score' type="text" data-slider-min="1" data-slider-max="100" data-slider-step="1" data-slider-value="{{settings.general.minimum_score}}"/>
</div>
</div>
<div class="row">

@ -78,9 +78,7 @@
<b>Number of days to go back in history to upgrade subtitles (up to 30)</b>
</div>
<div class="col-sm-4">
<input type="number" class="form-control" id="settings-general-days_to_upgrade_subs"
name="settings-general-days_to_upgrade_subs" min="1" max="30"
value="{{ settings.general.days_to_upgrade_subs }}" onkeydown="return false">
<input class="slider" id="settings-general-days_to_upgrade_subs" name="settings-general-days_to_upgrade_subs" data-slider-id='settings-general-days_to_upgrade_subs' type="text" data-slider-min="0" data-slider-max="30" data-slider-step="1" data-slider-value="{{settings.general.days_to_upgrade_subs}}"/>
</div>
</div>
<br>
@ -319,10 +317,8 @@
<div class="col-sm-5 text-right">
<b>Only for score below</b>
</div>
<div class="col-sm-1">
<input type="number" class="form-control" id="settings-general-postprocessing_threshold"
name="settings-general-postprocessing_threshold" min="0" max="100" step="1"
onkeydown="return false" value="{{ settings.general.postprocessing_threshold }}">
<div class="col-sm-4">
<input class="slider" id="settings-general-postprocessing_threshold" name="settings-general-postprocessing_threshold" data-slider-id='settings-general-postprocessing_threshold' type="text" data-slider-min="1" data-slider-max="100" data-slider-step="1" data-slider-value="{{settings.general.postprocessing_threshold}}"/>
</div>
</div>
<br>
@ -345,10 +341,8 @@
<div class="col-sm-5 text-right">
<b>Only for score below</b>
</div>
<div class="col-sm-1">
<input type="number" class="form-control" id="settings-general-postprocessing_threshold_movie"
name="settings-general-postprocessing_threshold_movie" min="0" max="100" step="1"
onkeydown="return false" value="{{ settings.general.postprocessing_threshold_movie }}">
<div class="col-sm-4">
<input class="slider" id="settings-general-postprocessing_threshold_movie" name="settings-general-postprocessing_threshold_movie" data-slider-id='settings-general-postprocessing_threshold_movie' type="text" data-slider-min="1" data-slider-max="100" data-slider-step="1" data-slider-value="{{settings.general.postprocessing_threshold_movie}}"/>
</div>
</div>
<br>

Loading…
Cancel
Save