From 57f58e5e6814e5d295f445e53f07b78db8c688b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Sun, 10 Jun 2018 20:55:01 +0200 Subject: [PATCH] Code style fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- appinfo/info.xml | 2 +- js/controller/CardController.js | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/appinfo/info.xml b/appinfo/info.xml index 72004d86d..2be03a6f4 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -14,7 +14,7 @@ - 🚀 Get your project organized - 0.4.0-alpha1 + 0.4.0-alpha3 agpl Julius Härtl Deck diff --git a/js/controller/CardController.js b/js/controller/CardController.js index 3f7bf5f47..f35a38817 100644 --- a/js/controller/CardController.js +++ b/js/controller/CardController.js @@ -70,10 +70,12 @@ app.controller('CardController', function ($scope, $rootScope, $sce, $location, $scope.status.edit.description = $scope.status.edit.description.replace(reg, function (match, i, original) { if (nth++ === id) { var result; - if (match.match(/^\[\s\]/i)) + if (match.match(/^\[\s\]/i)) { result = match.replace(/\[\s\]/i, '[x]'); - if (match.match(/^\[x\]/i)) + } + if (match.match(/^\[x\]/i)) { result = match.replace(/\[x\]/i, '[ ]'); + } return result; } return match;