Merge branch 'master' into Develop

# Conflicts:
#	cps.py
#	cps/web.py
This commit is contained in:
Ozzie Isaacs
2021-08-27 16:16:24 +02:00
15 changed files with 86 additions and 54 deletions
+10
View File
@@ -20,6 +20,15 @@ function getPath() {
var jsFileLocation = $("script[src*=jquery]").attr("src"); // the js file path
return jsFileLocation.substr(0, jsFileLocation.search("/static/js/libs/jquery.min.js")); // the js folder path
}
function elementSorter(a, b) {
a = +a.slice(0, -2);
b = +b.slice(0, -2);
if (a > b) return 1;
if (a < b) return -1;
return 0;
}
// Generic control/related handler to show/hide fields based on a checkbox' value
// e.g.
// <input type="checkbox" data-control="stuff-to-show">
@@ -712,3 +721,4 @@ $(function() {
});
});
});