Skip to content

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

PDF Viewer updated

uggrock53e85541be58
diff --git a/build.number b/build.number
index c8d9cf1e4..efac99741 100644
--- a/build.number
+++ b/build.number
@@ -1,4 +1,4 @@
#Build Number for ANT. Do not edit!
-#Sun Jun 16 10:04:23 CEST 2013
-build.number=1386
+#Tue Jul 09 17:10:58 CEST 2013
+build.number=1388
3=
diff --git a/data/css/tagspaces.css b/data/css/tagspaces.css
index 0204e8897..0ccada8f6 100644
--- a/data/css/tagspaces.css
+++ b/data/css/tagspaces.css
@@ -249,7 +249,7 @@ li hr {
overflow: hidden !important;
}
-#directoryNavigatorNorth, #dirTree, #tagGroups, .middle-north, .east-north {
+#directoryNavigatorNorth, #locationContent, #tagGroupsContent, .middle-north, .east-north {
background-color: white;
}
@@ -318,11 +318,11 @@ li hr {
background-color: #FFCC99;
}
-#dirTree .selectedDirectory {
+#location .selectedDirectory {
background-color: #EBD5AA;
}
-#dirTree {
+#locationContent {
overflow-x: hidden;
overflow-y: auto;
}
@@ -341,10 +341,10 @@ li hr {
text-decoration: none;
color: gray;
}
-
+/*
#tagGroups {
overflow: auto;
-}
+} */
/* JSON Editor */
div.jsoneditor-menu {
diff --git a/data/ext/viewerPDF/extension.js b/data/ext/viewerPDF/extension.js
new file mode 100644
index 000000000..a9f3a6382
--- /dev/null
+++ b/data/ext/viewerPDF/extension.js
@@ -0,0 +1,45 @@
+/* Copyright (c) 2013 The Tagspaces Authors. All rights reserved.
+ * Use of this source code is governed by a AGPL3 license that
+ * can be found in the LICENSE file. */
+
+define(function(require, exports, module) {
+"use strict";
+
+ console.log("Loading viewerPDF");
+
+ exports.id = "viewerPDF"; // ID should be equal to the directory name where the ext. is located
+ exports.title = "PDF Viewer";
+ exports.type = "viewer";
+ exports.supportedFileTypes = [ "pdf" ];
+
+ var TSCORE = require("tscore");
+
+ var extensionDirectory = TSCORE.Config.getExtensionPath()+"/"+exports.id;
+
+ exports.init = function(filePath, elementID) {
+ console.log("Initalization Browser PDF Viewer...");
+ var extPath = extensionDirectory+"/index.html";
+ $('#'+elementID).append($('<iframe>', {
+ id: "iframeViewer",
+ src: extPath+"?cp="+filePath
+ }));
+
+ // TODO ext lib integration
+ // require([extensionDirectory+'/croppr.js'], function() {
+ //
+ // });
+ }
+
+ exports.viewerMode = function(isViewerMode) {
+ console.log("viewerMode not supported on this extension");
+ }
+
+ exports.setContent = function(content) {
+ console.log("setContent not supported on this extension");
+ }
+
+ exports.getContent = function() {
+ console.log("getContent not supported on this extension");
+ }
+
+});
\ No newline at end of file
diff --git a/data/js/fileopener.js b/data/js/fileopener.js
index a9ff69eb5..5d685c358 100644
--- a/data/js/fileopener.js
+++ b/data/js/fileopener.js
@@ -67,14 +67,6 @@ define(function(require, exports, module) {
id: "iframeViewer",
src: filePath
}));
- // The extension viewerPDF is needed on client which does not
- // integrated a pdf viewer such as node-webkit
- } else if (viewerExt == "viewerPDF") {
- var extPath = TSCORE.Config.getExtensionPath()+"/"+viewerExt+"/index.html";
- $('#viewer').append($('<iframe>', {
- id: "iframeViewer",
- src: extPath+"?cp="+filePath
- }));
} else {
require([TSCORE.Config.getExtensionPath()+"/"+viewerExt+"/extension.js"], function(viewer) {
_tsEditor = viewer;
diff --git a/package.json b/package.json
index 24d204e46..69b4ba1ac 100644
--- a/package.json
+++ b/package.json
@@ -2,7 +2,7 @@
"name": "tagspaces",
"license": "AGPL 3.0",
"author": "Ugg Rock",
- "version": "1.4.1384",
+ "version": "1.4.1386",
"fullName": "TagSpaces",
"id": "jid1-FBaMKxTifTSahQ",
"description": "TagSpaces is a firefox addon, which allows you to browse your local file system and add tags to your files.",
diff --git a/update.rdf b/update.rdf
index f0f0f4a5e..e48e55c31 100644
--- a/update.rdf
+++ b/update.rdf
@@ -7,13 +7,13 @@
<r:Seq>
<r:li>
<r:Description>
- <version>1.4.1384</version>
+ <version>1.4.1386</version>
<targetApplication>
<r:Description>
<id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</id>
<minVersion>16.0</minVersion>
<maxVersion>*</maxVersion>
- <updateLink>http://tagspaces.com/releases/1.4/tagspaces.1.4.1384.xpi</updateLink>
+ <updateLink>http://tagspaces.com/releases/1.4/tagspaces.1.4.1386.xpi</updateLink>
<updateInfoURL>http://tagspaces.com/releases/1.4/updateInfo.xml</updateInfoURL>
</r:Description>
</targetApplication>