Added viewer button over the preview

This commit is contained in:
benweet 2013-06-19 23:13:24 +01:00
parent fc12ad8865
commit 33a8b0eed0
4 changed files with 24 additions and 1 deletions

View File

@ -10,6 +10,7 @@ define([
"extensions/buttonShare",
"extensions/buttonStat",
"extensions/buttonHtmlCode",
"extensions/buttonViewer",
"extensions/dialogAbout",
"extensions/dialogManagePublication",
"extensions/dialogManageSynchronization",

View File

@ -0,0 +1,19 @@
define([
"jquery",
"text!html/buttonViewer.html",
], function($, buttonViewerHTML) {
var buttonViewer = {
extensionId: "buttonViewer",
extensionName: 'Button "Viewer"',
optional: true,
settingsBloc: '<p>Adds a "Viewer" button over the preview.</p>'
};
buttonViewer.onCreatePreviewButton = function() {
return $(buttonViewerHTML);
};
return buttonViewer;
});

View File

@ -0,0 +1,4 @@
<a href="viewer.html" class="btn dropdown-toggle"
title="Open in viewer">
<i class="icon-fullscreen"></i>
</a>

View File

@ -61,7 +61,6 @@ define([
// Dequeue a synchronized location
var syncAttributes = uploadSyncAttributesList.pop();
utils.logValue(syncAttributes.syncIndex + localStorage[syncAttributes.syncIndex]);
// Use the specified provider to perform the upload
syncAttributes.provider.syncUp(uploadContent, uploadContentCRC, uploadTitle, uploadTitleCRC, syncAttributes, function(error, uploadFlag) {