TagSpaces is an offline, open source, document manager with tagging support
optimizations for the chrome extension
uggrock21d2cf024cde
diff --git a/data/js/core.ui.js b/data/js/core.ui.jsindex 47e7436d7..71f6a43ce 100644--- a/data/js/core.ui.js+++ b/data/js/core.ui.js@@ -775,11 +775,33 @@ define(function(require, exports, module) {} else if (isCordovaiOS) {$('#fullscreenFile').parent().hide();} else if (isChrome) {+ // Directory menu$('#directoryMenuOpenDirectory').parent().hide();+ $('#directoryMenuRenameDirectory').parent().hide();+ $('#directoryMenuDeleteDirectory').parent().hide();+ $('#directoryMenuCreateDirectory').parent().hide();+ // File menu$('#fileMenuOpenDirectory').parent().hide();$('#fileMenuOpenNatively').parent().hide();+ $('#fileMenuAddTag').parent().hide();+ $('#fileMenuMoveCopyFile').parent().hide();+ $('#fileMenuRenameFile').parent().hide();+ $('#fileMenuDeleteFile').parent().hide();+ // Tag menu+ $('#tagMenuEditTag').parent().hide();+ $('#tagMenuMoveTagFirst').parent().hide();+ $('#tagMenuMoveTagLeft').parent().hide();+ $('#tagMenuMoveTagRight').parent().hide();+ $('#tagMenuRemoveTag').parent().hide();$('#openDirectory').parent().hide();- $('#openNatively').hide();+ // File opener menu+ $('#tagFile').parent().hide();+ $('#renameFile').parent().hide();+ $('#duplicateFile').parent().hide();+ $('#sendFile').parent().hide();+ $('#deleteFile').parent().hide();+ $('#openNatively').parent().hide();+ $('#addTagFileViewer').hide();} else if (isWeb) {$('#directoryMenuOpenDirectory').parent().hide();$('#fileMenuOpenDirectory').parent().hide();diff --git a/data/js/fileopener.js b/data/js/fileopener.jsindex 8ee2b0ac6..2471e6908 100644--- a/data/js/fileopener.js+++ b/data/js/fileopener.js@@ -430,15 +430,17 @@ define(function(require, exports, module) {var $fileTitle = $('#fileTitle');$fileTitle.editable('destroy');$fileTitle.text(title);- $fileTitle.editable({- type: 'text',- //placement: 'bottom',- title: 'Change Title',- mode: 'inline',- success: function(response, newValue) {- TSCORE.TagUtils.changeTitle(_openedFilePath, newValue);- }- });+ if(!isChrome) {+ $fileTitle.editable({+ type: 'text',+ //placement: 'bottom',+ title: 'Change Title',+ mode: 'inline',+ success: function(response, newValue) {+ TSCORE.TagUtils.changeTitle(_openedFilePath, newValue);+ }+ });+ }// Generate tag & ext buttons// Appending tag buttonsvar tags = TSCORE.TagUtils.extractTags(_openedFilePath);