Skip to content

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

optimizing building ui for the perspective

Ilian621dabc04ce4
diff --git a/data/ext/perspectiveGrid/perspectiveUI.js b/data/ext/perspectiveGrid/perspectiveUI.js
index ba8d8a8c0..b314305d2 100644
--- a/data/ext/perspectiveGrid/perspectiveUI.js
+++ b/data/ext/perspectiveGrid/perspectiveUI.js
@@ -371,8 +371,8 @@ console.log("Loading UI for perspectiveDefault");
ExtUI.prototype.reInit = function() {
// Clear old data
- this.viewContainer.empty();
- this.viewFooter.empty();
+ this.viewContainer.children().remove();
+ this.viewFooter.children().remove();
this.viewContainer.addClass("accordion");
$( this.extensionID+"IncludeSubDirsButton" ).prop('disabled', false);