summaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2018-08-12 13:01:03 +0200
committermsquare <msquare@notrademark.de>2018-08-12 13:01:03 +0200
commit2d5aed1fedb0cd564e6fa55c31ba637a85b022c0 (patch)
tree6963830b32cd847ec28ddef7982219799a76afef /frontend
parentb409d2986fcca5bcafdad4b3b33094c12d8530a6 (diff)
js codestyle
Diffstat (limited to 'frontend')
-rw-r--r--frontend/js/forms.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/frontend/js/forms.js b/frontend/js/forms.js
index db1a3f83..05069be5 100644
--- a/frontend/js/forms.js
+++ b/frontend/js/forms.js
@@ -8,7 +8,7 @@ global.checkAll = (id, checked) => {
$('#' + id + ' input[type="checkbox"]').each(function () {
this.checked = checked;
});
-}
+};
/**
* Sets the checkboxes according to the given type
@@ -20,21 +20,21 @@ global.checkOwnTypes = (id, shifts_list) => {
$('#' + id + ' input[type="checkbox"]').each(function () {
this.checked = $.inArray(parseInt(this.value), shifts_list) != -1;
});
-}
+};
/**
* @param {moment} date
*/
global.formatDay = (date) => {
return date.format('YYYY-MM-DD');
-}
+};
/**
* @param {moment} date
*/
global.formatTime = (date) => {
return date.format('HH:mm');
-}
+};
/**
* @param {moment} from
@@ -48,7 +48,7 @@ global.setInput = (from, to) => {
toDay.val(formatDay(to));
toTime.val(formatTime(to));
-}
+};
global.setDay = (days) => {
days = days || 0;
@@ -62,7 +62,7 @@ global.setDay = (days) => {
to.hours(23).minutes(59);
setInput(from, to);
-}
+};
global.setHours = (hours) => {
hours = hours || 1;
@@ -77,7 +77,7 @@ global.setHours = (hours) => {
}
setInput(from, to);
-}
+};
$(function () {
/**