Skip to content

TagSpaces is an offline, open source, document manager with tagging support

Clean code

kristiyanddffdbed7290a7
diff --git a/data/js/tags.ui.js b/data/js/tags.ui.js
index 967ff76ff..893d933ff 100644
--- a/data/js/tags.ui.js
+++ b/data/js/tags.ui.js
@@ -381,7 +381,8 @@ define(function(require, exports, module) {
var d;
if (tagData.type === 'smart') {
switch (tagData.functionality) {
- case 'geoLocation': {
+ case 'geoLocation':
+ {
$('#viewContainers').on('drop dragend', function(event) {
if (TSCORE.selectedTag === 'geoTag') {
tagValue = TSCORE.showTagEditDialog();
@@ -389,23 +390,27 @@ define(function(require, exports, module) {
});
break;
}
- case 'today': {
+ case 'today':
+ {
tagValue = TSCORE.TagUtils.formatDateTime4Tag(new Date(), false);
break;
}
- case 'tomorrow': {
+ case 'tomorrow':
+ {
d = new Date();
d.setDate(d.getDate() + 1);
tagValue = TSCORE.TagUtils.formatDateTime4Tag(d, false);
break;
}
- case 'yesterday': {
+ case 'yesterday':
+ {
d = new Date();
d.setDate(d.getDate() - 1);
tagValue = TSCORE.TagUtils.formatDateTime4Tag(d, false);
break;
}
- case 'currentMonth': {
+ case 'currentMonth':
+ {
var cMonth = '' + (new Date().getMonth() + 1);
if (cMonth.length === 1) {
cMonth = '0' + cMonth;
@@ -413,15 +418,18 @@ define(function(require, exports, module) {
tagValue = '' + new Date().getFullYear() + cMonth;
break;
}
- case 'currentYear': {
+ case 'currentYear':
+ {
tagValue = '' + new Date().getFullYear();
break;
}
- case 'now': {
+ case 'now':
+ {
tagValue = TSCORE.TagUtils.formatDateTime4Tag(new Date(), true);
break;
}
- default: {
+ default:
+ {
break;
}
}
@@ -566,7 +574,7 @@ define(function(require, exports, module) {
}
$('#colorChangesToAllTags').on('change', function() {
- checkColorToAllTags = $('#colorChangesToAllTags').prop('checked');
+ $('#colorChangesToAllTags').prop('checked');
});
$('#tagGroupName').val(TSCORE.selectedTagData.title);