Add utils object for common code.

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2020-01-27 11:01:48 +00:00
parent cfec7412da
commit 516c9e946a
5 changed files with 147 additions and 115 deletions

View File

@@ -6,10 +6,6 @@
* Please see LICENSE file for your rights under this license. */
/* global moment:false */
/* global showAlert:false */
/* global datetime:false */
/* global disableAll:false */
/* global enableAll:false */
var info = null;
function showAlert(type, icon, title, message) {
@@ -88,3 +84,12 @@ function enableAll() {
$("button").attr("disabled", false);
$("textarea").attr("disabled", false);
}
window.utils = (function() {
return {
showAlert: showAlert,
datetime: datetime,
disableAll: disableAll,
enableAll: enableAll
};
})();