Make text tab always available at default

pull/522/head
dgtlmoon 3 years ago
parent 9fe4f95990
commit 2620818ba7

@ -649,7 +649,7 @@ def changedetection_app(config=None, datastore_o=None):
datastore.data['settings']['application']['global_ignore_text'] = form.global_ignore_text.data
datastore.data['settings']['application']['ignore_whitespace'] = form.ignore_whitespace.data
datastore.data['settings']['application']['real_browser_save_screenshot'] = form.real_browser_save_screenshot.data
if form.trigger_check.data:
if len(form.notification_urls.data):
n_object = {'watch_url': "Test from changedetection.io!",

@ -35,15 +35,15 @@
<a onclick="next_diff();">Jump</a>
</div>
{% if screenshot %}
<script type="text/javascript" src="{{url_for('static_content', group='js', filename='tabs.js')}}" defer></script>
<div class="tabs">
<ul>
<li class="tab" id="default-tab"><a href="#text">Text</a></li>
{% if screenshot %}
<li class="tab"><a href="#screenshot">Screenshot</a></li>
{% endif %}
</ul>
</div>
{% endif %}
<div id="diff-ui">
<div class="tab-pane-inner" id="text">

@ -6,15 +6,15 @@
<h1>Current - {{watch.last_checked|format_timestamp_timeago}}</h1>
</div>
{% if screenshot %}
<script type="text/javascript" src="{{url_for('static_content', group='js', filename='tabs.js')}}" defer></script>
<div class="tabs">
<ul>
<li class="tab" id="default-tab"><a href="#text">Text</a></li>
{% if screenshot %}
<li class="tab"><a href="#screenshot">Screenshot</a></li>
{% endif %}
</ul>
</div>
{% endif %}
<div id="diff-ui">
<div class="tab-pane-inner" id="text">

Loading…
Cancel
Save