diff options
author | msquare <msquare@notrademark.de> | 2018-08-12 13:06:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-12 13:06:05 +0200 |
commit | 98b03d5c679e91891d6283d04613c2afc29edf59 (patch) | |
tree | 3c69207d4b86e8ea9da4ce6222d8d3b74b47bda4 | |
parent | df30f7d5d89d8de3f61905d8e25eb361a06faa7f (diff) | |
parent | 2d5aed1fedb0cd564e6fa55c31ba637a85b022c0 (diff) |
Merge pull request #446 from engelsystem/marudor-master
js codestyle
-rw-r--r-- | frontend/js/forms.js | 14 | ||||
-rw-r--r-- | webpack.config.js | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/frontend/js/forms.js b/frontend/js/forms.js index 3f7aeb84..13e42d26 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, shiftsList) => { $('#' + id + ' input[type="checkbox"]').each(function () { this.checked = $.inArray(parseInt(this.value), shiftsList) != -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 () { /** diff --git a/webpack.config.js b/webpack.config.js index b8bb7599..588ee247 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,6 +1,6 @@ const path = require('path'); const webpack = require('webpack'); -const ExtractTextPlugin = require("extract-text-webpack-plugin"); +const ExtractTextPlugin = require('extract-text-webpack-plugin'); const nodeEnv = (process.env.NODE_ENV || 'development').trim(); // eslint-disable-next-line |