Skip to content

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

correcting js styling

uggrock1f48939c488f
diff --git a/data/ext/perspectiveGrid/perspectiveUI.js b/data/ext/perspectiveGrid/perspectiveUI.js
index f87ae8145..435c4096a 100644
--- a/data/ext/perspectiveGrid/perspectiveUI.js
+++ b/data/ext/perspectiveGrid/perspectiveUI.js
@@ -62,7 +62,7 @@ define(function(require, exports, module) {
'{{#each tags}}' +
'<button class="btn btn-sm tagButton fileTagsTile" tag="{{tag}}" filepath="{{filepath}}" style="{{style}}">{{tag}} <span class="caret"></span></button>' +
'{{/each}}' +
- '</div>'+
+ '</div>' +
'<div class="titleInFileTile">{{title}}</div>' +
'</div>'
);
@@ -434,14 +434,14 @@ define(function(require, exports, module) {
var self = this;
var $extMainContent = this.viewContainer.find(".extMainContent");
- if($extMainContent) {
+ if ($extMainContent) {
$extMainContent.remove();
}
// Load new filtered data
this.searchResults = TSCORE.Search.searchData(TSCORE.fileList, TSCORE.Search.nextQuery);
- var fileGroups = self.calculateGrouping(this.searchResults)
+ var fileGroups = self.calculateGrouping(this.searchResults);
this.viewContainer.append(mainLayoutTemplate({
id: self.extensionID,
diff --git a/data/js/perspective.manager.js b/data/js/perspective.manager.js
index a0991fb07..740d52e84 100644
--- a/data/js/perspective.manager.js
+++ b/data/js/perspective.manager.js
@@ -176,7 +176,7 @@ define(function(require, exports, module) {
perspectives[i].load();
break;
} catch (e) {
- console.error('Error while executing \'redrawCurrentPerspective\' on ' + perspectives[i].ID + ' ' + e);
+ console.warning('Error while executing \'redrawCurrentPerspective\' on ' + perspectives[i].ID + ' ' + e);
}
}
}
@@ -188,7 +188,7 @@ define(function(require, exports, module) {
try {
perspectives[i].removeFileUI(filePath);
} catch (e) {
- console.error('Error while executing \'removeFileUI\' on ' + perspectives[i].ID + ' ' + e);
+ console.warning('Error while executing \'removeFileUI\' on ' + perspectives[i].ID + ' ' + e);
}
}
};
@@ -199,7 +199,7 @@ define(function(require, exports, module) {
try {
perspectives[i].updateFileUI(oldFilePath, newFilePath);
} catch (e) {
- console.error('Error while executing \'updateFileUI\' on ' + perspectives[i].ID + ' ' + e);
+ console.warning('Error while executing \'updateFileUI\' on ' + perspectives[i].ID + ' ' + e);
}
}
};
@@ -210,7 +210,7 @@ define(function(require, exports, module) {
try {
return perspectives[i].getNextFile(filePath);
} catch (e) {
- console.error('Error while executing \'getNextFile\' on ' + perspectives[i].ID + ' ' + e);
+ console.warning('Error while executing \'getNextFile\' on ' + perspectives[i].ID + ' ' + e);
}
}
}
@@ -222,7 +222,7 @@ define(function(require, exports, module) {
try {
return perspectives[i].getPrevFile(filePath);
} catch (e) {
- console.error('Error while executing \'getPrevFile\' on ' + perspectives[i].ID + ' ' + e);
+ console.warning('Error while executing \'getPrevFile\' on ' + perspectives[i].ID + ' ' + e);
}
}
}
@@ -233,7 +233,7 @@ define(function(require, exports, module) {
try {
perspectives[i].updateTreeData(treeData);
} catch (e) {
- console.error('Error while executing \'updateTreeData\' on ' + perspectives[i].ID + ' ' + e);
+ console.warning('Error while executing \'updateTreeData\' on ' + perspectives[i].ID + ' ' + e);
}
}
};