diff options
author | Raimund Schlüßler <raimund.schluessler@googlemail.com> | 2016-08-26 19:22:28 +0300 |
---|---|---|
committer | Raimund Schlüßler <raimund.schluessler@googlemail.com> | 2016-08-26 19:22:28 +0300 |
commit | 35574fb9e5d64c1c755d9b0735c35180df262023 (patch) | |
tree | 58e460d1c9e62234b449c1fdd417792540d6f1d9 /js | |
parent | b69a8ad50a07eab562ac85c11d1dfb8fee946308 (diff) |
Fix comparison and whitespace
Diffstat (limited to 'js')
-rw-r--r-- | js/app/controllers/taskscontroller.js | 10 | ||||
-rw-r--r-- | js/public/app.js | 12 |
2 files changed, 11 insertions, 11 deletions
diff --git a/js/app/controllers/taskscontroller.js b/js/app/controllers/taskscontroller.js index ea782f26..26b09e57 100644 --- a/js/app/controllers/taskscontroller.js +++ b/js/app/controllers/taskscontroller.js @@ -163,18 +163,18 @@ return true; } }; - + this._$scope.focusTaskInput = function() { _$scope.status.focusTaskInput = true; }; this._$scope.focusSubtaskInput = function() { _$scope.status.focusSubtaskInput = true; }; - + this._$scope.openDetails = function(id, $event) { var calendarID = _$scope.route.calendarID; var collectionID = _$scope.route.collectionID; - if ($event==null || $($event.currentTarget).is($($event.target).closest('.handler'))) { + if ($event === null || $($event.currentTarget).is($($event.target).closest('.handler'))) { var parent = _$tasksmodel.getByUri(id); if (!parent.loadedCompleted) { _tasksbusinesslayer.getAll(parent.calendar, true, parent).then(function() { @@ -343,7 +343,7 @@ var calendarID = $($event.target).closest('ol[dnd-list]').attr('calendarID'); var newCalendar = _$listsmodel.getByUri(calendarID); var queries = _tasksbusinesslayer.makeRootTask(task, newCalendar, collectionID); - Promise.all(queries).then(function() { + Promise.all(queries).then(function() { $scope.$apply(); }); } @@ -374,7 +374,7 @@ this._$scope.dragStart = function($event) { if ($event.dataTransfer.effectAllowed === 'copy' || ($event.dataTransfer.effectAllowed === 'copyMove' && $event.ctrlKey)) { $($event.target).addClass('copy'); - } + } }; this._$scope.dragEnd = function($event) { diff --git a/js/public/app.js b/js/public/app.js index d0bf8031..aee93610 100644 --- a/js/public/app.js +++ b/js/public/app.js @@ -1042,18 +1042,18 @@ angular.module('Tasks').controller('SettingsController', [ return true; } }; - + this._$scope.focusTaskInput = function() { _$scope.status.focusTaskInput = true; }; this._$scope.focusSubtaskInput = function() { _$scope.status.focusSubtaskInput = true; }; - + this._$scope.openDetails = function(id, $event) { var calendarID = _$scope.route.calendarID; var collectionID = _$scope.route.collectionID; - if ($event==null || $($event.currentTarget).is($($event.target).closest('.handler'))) { + if ($event === null || $($event.currentTarget).is($($event.target).closest('.handler'))) { var parent = _$tasksmodel.getByUri(id); if (!parent.loadedCompleted) { _tasksbusinesslayer.getAll(parent.calendar, true, parent).then(function() { @@ -1222,7 +1222,7 @@ angular.module('Tasks').controller('SettingsController', [ var calendarID = $($event.target).closest('ol[dnd-list]').attr('calendarID'); var newCalendar = _$listsmodel.getByUri(calendarID); var queries = _tasksbusinesslayer.makeRootTask(task, newCalendar, collectionID); - Promise.all(queries).then(function() { + Promise.all(queries).then(function() { $scope.$apply(); }); } @@ -1253,7 +1253,7 @@ angular.module('Tasks').controller('SettingsController', [ this._$scope.dragStart = function($event) { if ($event.dataTransfer.effectAllowed === 'copy' || ($event.dataTransfer.effectAllowed === 'copyMove' && $event.ctrlKey)) { $($event.target).addClass('copy'); - } + } }; this._$scope.dragEnd = function($event) { @@ -4690,4 +4690,4 @@ angular.module('Tasks').service('VTodoService', ['DavClient', 'RandomStringServi }]); -})(window.angular, window.jQuery, oc_requesttoken); +})(window.angular, window.jQuery, oc_requesttoken);
\ No newline at end of file |