mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2025-12-15 12:36:53 +00:00
pulling upgrade
This commit is contained in:
@@ -663,7 +663,7 @@ def changedetection_app(config=None, datastore_o=None):
|
|||||||
uuids = request.form.get('uuids')
|
uuids = request.form.get('uuids')
|
||||||
|
|
||||||
if uuids == '' :
|
if uuids == '' :
|
||||||
flash("No watches selected.", "notice")
|
flash("No watches selected.")
|
||||||
|
|
||||||
else :
|
else :
|
||||||
|
|
||||||
@@ -686,7 +686,7 @@ def changedetection_app(config=None, datastore_o=None):
|
|||||||
|
|
||||||
flash("{} watch{} {} rechecking.".format(i, "" if (i == 1) else "es", "is" if (i == 1) else "are"), "notice")
|
flash("{} watch{} {} rechecking.".format(i, "" if (i == 1) else "es", "is" if (i == 1) else "are"), "notice")
|
||||||
#flash("{} watches are rechecking.".format(i))
|
#flash("{} watches are rechecking.".format(i))
|
||||||
|
|
||||||
# Clear selected statuses, so we do not see the 'unviewed' class
|
# Clear selected statuses, so we do not see the 'unviewed' class
|
||||||
elif func == 'mark_selected_viewed' :
|
elif func == 'mark_selected_viewed' :
|
||||||
|
|
||||||
@@ -755,15 +755,15 @@ def changedetection_app(config=None, datastore_o=None):
|
|||||||
|
|
||||||
datastore.needs_write = True
|
datastore.needs_write = True
|
||||||
|
|
||||||
flash("{} {} deleted.".format(i, "watch was" if (i) == 1 else "watches were"), "notice")
|
flash("{0} {1} deleted.".format(i, "watch was" if (i) == 1 else "watches were"))
|
||||||
|
|
||||||
else :
|
else :
|
||||||
|
|
||||||
flash("Invalid parameter received.", "error")
|
flash("Invalid parameter received.")
|
||||||
|
|
||||||
render_template(url_for('index'), tag = limit_tag)
|
render_template(url_for('index'), tag = limit_tag)
|
||||||
return index()
|
return index()
|
||||||
|
|
||||||
@app.route("/diff/<string:uuid>", methods=['GET'])
|
@app.route("/diff/<string:uuid>", methods=['GET'])
|
||||||
@login_required
|
@login_required
|
||||||
def diff_history_page(uuid):
|
def diff_history_page(uuid):
|
||||||
@@ -939,7 +939,7 @@ def changedetection_app(config=None, datastore_o=None):
|
|||||||
if add_paused :
|
if add_paused :
|
||||||
datastore.data['watching'][new_uuid]['paused'] = True
|
datastore.data['watching'][new_uuid]['paused'] = True
|
||||||
datastore.needs_write = True
|
datastore.needs_write = True
|
||||||
flash("Watch added in a paused state.", "notice")
|
flash("Watch added in a paused state.")
|
||||||
|
|
||||||
else : # watch now
|
else : # watch now
|
||||||
# Straight into the queue.
|
# Straight into the queue.
|
||||||
@@ -1005,6 +1005,7 @@ def changedetection_app(config=None, datastore_o=None):
|
|||||||
else:
|
else:
|
||||||
# No tag, no uuid, add everything.
|
# No tag, no uuid, add everything.
|
||||||
for watch_uuid, watch in datastore.data['watching'].items():
|
for watch_uuid, watch in datastore.data['watching'].items():
|
||||||
|
|
||||||
if watch_uuid not in running_uuids and not datastore.data['watching'][watch_uuid]['paused']:
|
if watch_uuid not in running_uuids and not datastore.data['watching'][watch_uuid]['paused']:
|
||||||
update_q.put(watch_uuid)
|
update_q.put(watch_uuid)
|
||||||
i += 1
|
i += 1
|
||||||
@@ -1024,6 +1025,7 @@ def changedetection_app(config=None, datastore_o=None):
|
|||||||
|
|
||||||
return app
|
return app
|
||||||
|
|
||||||
|
|
||||||
# Check for new version and anonymous stats
|
# Check for new version and anonymous stats
|
||||||
def check_for_new_version():
|
def check_for_new_version():
|
||||||
import requests
|
import requests
|
||||||
@@ -1094,7 +1096,7 @@ def ticker_thread_check_time_launch_checks():
|
|||||||
for uuid, watch in copied_datastore.data['watching'].items():
|
for uuid, watch in copied_datastore.data['watching'].items():
|
||||||
# If they supplied an individual entry minutes to threshold.
|
# If they supplied an individual entry minutes to threshold.
|
||||||
if 'minutes_between_check' in watch and watch['minutes_between_check'] is not None:
|
if 'minutes_between_check' in watch and watch['minutes_between_check'] is not None:
|
||||||
# Cast to int just incase
|
# Cast to int just incase #160, kluge for checks in seconds
|
||||||
max_time = int(watch['minutes_between_check']) * 60
|
max_time = int(watch['minutes_between_check']) * 60
|
||||||
else:
|
else:
|
||||||
# Default system wide.
|
# Default system wide.
|
||||||
|
|||||||
@@ -218,7 +218,13 @@ function checkChange(e) {
|
|||||||
var i;
|
var i;
|
||||||
var totalCheckbox = document.querySelectorAll('input[name="check"]').length;
|
var totalCheckbox = document.querySelectorAll('input[name="check"]').length;
|
||||||
var totalChecked = document.querySelectorAll('input[name="check"]:checked').length;
|
var totalChecked = document.querySelectorAll('input[name="check"]:checked').length;
|
||||||
var checkboxFunctions = document.getElementById('checkbox-functions'); //document.querySelectorAll('[id=checkbox-functions]');
|
var checkboxFunctions = document.getElementById('checkbox-functions');
|
||||||
|
if(totalCheckbox == totalChecked) {
|
||||||
|
document.getElementsByName("showhide")[0].checked=true;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
document.getElementsByName("showhide")[0].checked=false;
|
||||||
|
}
|
||||||
if (totalChecked > 0) {
|
if (totalChecked > 0) {
|
||||||
checkboxFunctions.style.display = "";
|
checkboxFunctions.style.display = "";
|
||||||
checkboxFunctions.style.left = offsetLeft + 30 + "px";
|
checkboxFunctions.style.left = offsetLeft + 30 + "px";
|
||||||
@@ -388,4 +394,13 @@ function getSort() {
|
|||||||
//alert("Your web browser does not support retaining sorting and page position.");
|
//alert("Your web browser does not support retaining sorting and page position.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function closeGridDisplay() {
|
||||||
|
document.getElementsByName("showhide")[0].checked = false;
|
||||||
|
var checkboxes = document.getElementsByName('check');
|
||||||
|
for (var i = 0; i < checkboxes.length; i++) {
|
||||||
|
checkboxes[i].checked = false;
|
||||||
|
}
|
||||||
|
document.getElementById("checkbox-functions").style.display = "none";
|
||||||
}
|
}
|
||||||
@@ -179,18 +179,18 @@ section.content {
|
|||||||
#post-list-buttons li {
|
#post-list-buttons li {
|
||||||
display:inline-block
|
display:inline-block
|
||||||
}
|
}
|
||||||
|
#post-list-buttons a {
|
||||||
|
border-top-left-radius:initial;
|
||||||
|
border-top-right-radius:initial;
|
||||||
|
border-bottom-left-radius:5px;
|
||||||
|
border-bottom-right-radius:5px;
|
||||||
|
}
|
||||||
#post-list-buttons-top-grid {
|
#post-list-buttons-top-grid {
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
}
|
}
|
||||||
#post-list-buttons-top-grid li {
|
#post-list-buttons-top-grid li {
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
}
|
}
|
||||||
#post-list-buttons a {
|
|
||||||
border-top-left-radius:initial;
|
|
||||||
border-top-right-radius:initial;
|
|
||||||
border-bottom-left-radius:5px;
|
|
||||||
border-bottom-right-radius:5px
|
|
||||||
}
|
|
||||||
#checkbox-functions ul {
|
#checkbox-functions ul {
|
||||||
padding-left: 0px;
|
padding-left: 0px;
|
||||||
}
|
}
|
||||||
@@ -219,10 +219,14 @@ section.content {
|
|||||||
-ms-grid-column: 1;
|
-ms-grid-column: 1;
|
||||||
-ms-grid-row: 4;
|
-ms-grid-row: 4;
|
||||||
}
|
}
|
||||||
|
#grid-item-5 { /* IE grid support */
|
||||||
|
-ms-grid-column: 1;
|
||||||
|
-ms-grid-row: 5;
|
||||||
|
}
|
||||||
#checkbox-functions .pure-button {
|
#checkbox-functions .pure-button {
|
||||||
background: #0078e7;
|
background: #0078e7;
|
||||||
border-top-left-radius: 0px;
|
border-top-left-radius: 5px;
|
||||||
border-bottom-left-radius: 0px;
|
border-bottom-left-radius: 5px;
|
||||||
border-top-right-radius: 5px;
|
border-top-right-radius: 5px;
|
||||||
border-bottom-right-radius: 5px;
|
border-bottom-right-radius: 5px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,6 +42,9 @@
|
|||||||
<li id="grid-item-4">
|
<li id="grid-item-4">
|
||||||
<a href="javascript:processChecked('delete_selected', '{{ active_tag }}');" class="pure-button button-tag danger " title="Delete Selected{%if active_tag%} in "{{active_tag}}"{%endif%}">Delete </a>
|
<a href="javascript:processChecked('delete_selected', '{{ active_tag }}');" class="pure-button button-tag danger " title="Delete Selected{%if active_tag%} in "{{active_tag}}"{%endif%}">Delete </a>
|
||||||
</li>
|
</li>
|
||||||
|
<li id="grid-item-5">
|
||||||
|
<a href="javascript:closeGridDisplay();" class="pure-button button-tag ">Cancel </a>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user