@@ -14,7 +14,7 @@
|
|||||||
- 🚀 Get your project organized
|
- 🚀 Get your project organized
|
||||||
|
|
||||||
</description>
|
</description>
|
||||||
<version>0.4.0-alpha1</version>
|
<version>0.4.0-alpha3</version>
|
||||||
<licence>agpl</licence>
|
<licence>agpl</licence>
|
||||||
<author>Julius Härtl</author>
|
<author>Julius Härtl</author>
|
||||||
<namespace>Deck</namespace>
|
<namespace>Deck</namespace>
|
||||||
|
|||||||
@@ -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) {
|
$scope.status.edit.description = $scope.status.edit.description.replace(reg, function (match, i, original) {
|
||||||
if (nth++ === id) {
|
if (nth++ === id) {
|
||||||
var result;
|
var result;
|
||||||
if (match.match(/^\[\s\]/i))
|
if (match.match(/^\[\s\]/i)) {
|
||||||
result = match.replace(/\[\s\]/i, '[x]');
|
result = match.replace(/\[\s\]/i, '[x]');
|
||||||
if (match.match(/^\[x\]/i))
|
}
|
||||||
|
if (match.match(/^\[x\]/i)) {
|
||||||
result = match.replace(/\[x\]/i, '[ ]');
|
result = match.replace(/\[x\]/i, '[ ]');
|
||||||
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
return match;
|
return match;
|
||||||
|
|||||||
Reference in New Issue
Block a user