Skip to content

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

adding close button to the perspective switcher

uggrock0d2b5c378bfc
diff --git a/data/js/perspective.manager.js b/data/js/perspective.manager.js
index c43a066a1..5bcb4568f 100644
--- a/data/js/perspective.manager.js
+++ b/data/js/perspective.manager.js
@@ -78,8 +78,7 @@ define(function(require, exports, module) {
$viewSwitcher.append($('<li>', {
class: 'dropdown-header',
text: $.i18n.t('ns.common:perspectiveSwitch')
- }));
- $viewSwitcher.append('<li class=\'divider\'></li>');
+ }).prepend("<button class='close'>&times;</button>"));
for (var i = 0; i < extensions.length; i++) {
var curPers;
// Finding the right perspective