From cf09767b48fa2576da3f002f02d067d05185655f Mon Sep 17 00:00:00 2001 From: ntmmfts Date: Tue, 28 Dec 2021 09:34:36 -1000 Subject: [PATCH] fixes/adjustments 12/28 --- changedetectionio/__init__.py | 9 ++-- changedetectionio/static/js/tbltools.js | 6 ++- changedetectionio/static/styles/styles.css | 42 ++----------------- changedetectionio/templates/base.html | 2 +- .../templates/watch-overview.html | 28 ++++++------- 5 files changed, 28 insertions(+), 59 deletions(-) diff --git a/changedetectionio/__init__.py b/changedetectionio/__init__.py index 51e7bd61..f5dbd2c6 100644 --- a/changedetectionio/__init__.py +++ b/changedetectionio/__init__.py @@ -30,7 +30,7 @@ import datetime import pytz from copy import deepcopy -__version__ = '0.39.5' +__version__ = '0.39.4' datastore = None @@ -671,7 +671,6 @@ def changedetection_app(config=None, datastore_o=None): if uuids == '' : flash("No watches selected.") - return render_template('index') else : @@ -692,7 +691,7 @@ def changedetection_app(config=None, datastore_o=None): except KeyError : pass - flash("Rechecking {0} watch{1}.".format(i, "" if i == 1 else "es")) + flash("{0} watch{1} {2} rechecking.".format(i, "" if i == 1 else "es", "is" if i == 1 else "are")) # Clear selected statuses, so we do not see the 'unviewed' class elif func == 'mark_selected_viewed' : @@ -768,6 +767,8 @@ def changedetection_app(config=None, datastore_o=None): flash("Invalid parameter received.") + render_template('index') #ensure flash msgs are seen + if limit_tag == None or limit_tag == 'None' : return redirect(url_for('index')) else : @@ -1018,7 +1019,7 @@ def changedetection_app(config=None, datastore_o=None): if watch_uuid not in running_uuids and not datastore.data['watching'][watch_uuid]['paused']: update_q.put(watch_uuid) i += 1 - flash("{} watches are rechecking.".format(i)) + flash("{0} watch{1} {2} rechecking.".format(i, "" if i == 1 else "es", "is" if i == 1 else "are")) return redirect(url_for('index', tag=tag)) # @todo handle ctrl break diff --git a/changedetectionio/static/js/tbltools.js b/changedetectionio/static/js/tbltools.js index 859cccc3..4959292d 100644 --- a/changedetectionio/static/js/tbltools.js +++ b/changedetectionio/static/js/tbltools.js @@ -41,6 +41,10 @@ document.onkeyup=function(e){ } // page load functions +window.addEventListener('DOMContentLoaded', (event) => { + load_functions(); +}); + function load_functions() { // loading loading = true; @@ -359,7 +363,7 @@ function getSort() { sort_order = sessionStorage.getItem("sort_order"); } else { - sort_column = 9; // last changed + sort_column = 7; // last changed sort_order = 1; // desc //alert("Your web browser does not support retaining sorting and page position."); } diff --git a/changedetectionio/static/styles/styles.css b/changedetectionio/static/styles/styles.css index 4a1d38ac..1a9f7db9 100644 --- a/changedetectionio/static/styles/styles.css +++ b/changedetectionio/static/styles/styles.css @@ -160,18 +160,7 @@ section.content { display: flex; justify-content: center; } -/* #post-list-buttons { - padding: 0; - margin: 0; -} -#post-list-buttons-top { - display: grid; - padding-left: 0; -} -#post-list-buttons li { - display: inline-block; -} - */#flexlayout { +#flexlayout { float: right; } #categories { @@ -198,34 +187,10 @@ section.content { border-bottom-left-radius:5px; border-bottom-right-radius:5px } - - - - - -/* #post-list-buttons-top a { - border-top-left-radius: 5px; - border-top-right-radius: 5px; - border-bottom-left-radius: initial; - border-bottom-right-radius: initial; -} -#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 a { - display: grid; - display: -ms-grid; -} - */#checkbox-functions ul { +#checkbox-functions ul { padding-left: 0px; } -/* #post-list-buttons-top-grid li { - list-style-type: none; -} - */#checkbox-functions { +#checkbox-functions { position: fixed; left: 10%; text-align: left; @@ -725,7 +690,6 @@ footer { } .watch-table { display: inline-block; - padding: 5px; } .search-box input[type=text]:focus,input[type=text]:not(:placeholder-shown) { width: 150px; diff --git a/changedetectionio/templates/base.html b/changedetectionio/templates/base.html index 055cf4cc..92f2c995 100644 --- a/changedetectionio/templates/base.html +++ b/changedetectionio/templates/base.html @@ -13,7 +13,7 @@ {% endfor %} {% endif %} - +
diff --git a/changedetectionio/templates/watch-overview.html b/changedetectionio/templates/watch-overview.html index 5cfd3dbe..119df62a 100644 --- a/changedetectionio/templates/watch-overview.html +++ b/changedetectionio/templates/watch-overview.html @@ -30,16 +30,16 @@