diff --git a/js/extensionMgr.js b/js/extensionMgr.js index 2490ecd0..7fad431a 100644 --- a/js/extensionMgr.js +++ b/js/extensionMgr.js @@ -10,6 +10,7 @@ define([ "extensions/buttonShare", "extensions/buttonStat", "extensions/buttonHtmlCode", + "extensions/buttonViewer", "extensions/dialogAbout", "extensions/dialogManagePublication", "extensions/dialogManageSynchronization", diff --git a/js/extensions/buttonViewer.js b/js/extensions/buttonViewer.js new file mode 100644 index 00000000..ae2e7d5d --- /dev/null +++ b/js/extensions/buttonViewer.js @@ -0,0 +1,19 @@ +define([ + "jquery", + "text!html/buttonViewer.html", +], function($, buttonViewerHTML) { + + var buttonViewer = { + extensionId: "buttonViewer", + extensionName: 'Button "Viewer"', + optional: true, + settingsBloc: '

Adds a "Viewer" button over the preview.

' + }; + + buttonViewer.onCreatePreviewButton = function() { + return $(buttonViewerHTML); + }; + + return buttonViewer; + +}); \ No newline at end of file diff --git a/js/html/buttonViewer.html b/js/html/buttonViewer.html new file mode 100644 index 00000000..7bd8ee1e --- /dev/null +++ b/js/html/buttonViewer.html @@ -0,0 +1,4 @@ + + + diff --git a/js/synchronizer.js b/js/synchronizer.js index 83ce581b..a9ff9f40 100644 --- a/js/synchronizer.js +++ b/js/synchronizer.js @@ -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) {