Added viewer button over the preview
This commit is contained in:
parent
fc12ad8865
commit
33a8b0eed0
@ -10,6 +10,7 @@ define([
|
|||||||
"extensions/buttonShare",
|
"extensions/buttonShare",
|
||||||
"extensions/buttonStat",
|
"extensions/buttonStat",
|
||||||
"extensions/buttonHtmlCode",
|
"extensions/buttonHtmlCode",
|
||||||
|
"extensions/buttonViewer",
|
||||||
"extensions/dialogAbout",
|
"extensions/dialogAbout",
|
||||||
"extensions/dialogManagePublication",
|
"extensions/dialogManagePublication",
|
||||||
"extensions/dialogManageSynchronization",
|
"extensions/dialogManageSynchronization",
|
||||||
|
19
js/extensions/buttonViewer.js
Normal file
19
js/extensions/buttonViewer.js
Normal 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;
|
||||||
|
|
||||||
|
});
|
4
js/html/buttonViewer.html
Normal file
4
js/html/buttonViewer.html
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<a href="viewer.html" class="btn dropdown-toggle"
|
||||||
|
title="Open in viewer">
|
||||||
|
<i class="icon-fullscreen"></i>
|
||||||
|
</a>
|
@ -61,7 +61,6 @@ define([
|
|||||||
|
|
||||||
// Dequeue a synchronized location
|
// Dequeue a synchronized location
|
||||||
var syncAttributes = uploadSyncAttributesList.pop();
|
var syncAttributes = uploadSyncAttributesList.pop();
|
||||||
utils.logValue(syncAttributes.syncIndex + localStorage[syncAttributes.syncIndex]);
|
|
||||||
|
|
||||||
// Use the specified provider to perform the upload
|
// Use the specified provider to perform the upload
|
||||||
syncAttributes.provider.syncUp(uploadContent, uploadContentCRC, uploadTitle, uploadTitleCRC, syncAttributes, function(error, uploadFlag) {
|
syncAttributes.provider.syncUp(uploadContent, uploadContentCRC, uploadTitle, uploadTitleCRC, syncAttributes, function(error, uploadFlag) {
|
||||||
|
Loading…
Reference in New Issue
Block a user