From 339615c8207db21bc8d29813110a4364ea127cec Mon Sep 17 00:00:00 2001 From: benweet Date: Mon, 23 Dec 2013 23:40:13 +0100 Subject: [PATCH] Secondary Google account (part4) --- public/res/html/dialogExportGdrive.html | 70 +++++++++++++++++++++++++ public/res/publisher.js | 3 +- public/res/synchronizer.js | 3 +- 3 files changed, 74 insertions(+), 2 deletions(-) create mode 100644 public/res/html/dialogExportGdrive.html diff --git a/public/res/html/dialogExportGdrive.html b/public/res/html/dialogExportGdrive.html new file mode 100644 index 00000000..4d97a24c --- /dev/null +++ b/public/res/html/dialogExportGdrive.html @@ -0,0 +1,70 @@ + diff --git a/public/res/publisher.js b/public/res/publisher.js index cd1ba169..9c8b1da5 100644 --- a/public/res/publisher.js +++ b/public/res/publisher.js @@ -17,6 +17,7 @@ define([ "providers/githubProvider", "providers/gdriveProvider", "providers/gdrivesecProvider", + "providers/gdriveterProvider", "providers/sshProvider", "providers/tumblrProvider", "providers/wordpressProvider" @@ -26,7 +27,7 @@ define([ // Create a map with providerId: providerModule var providerMap = _.chain(arguments).map(function(argument) { - return argument instanceof Provider && [ + return argument instanceof Provider && argument.isPublishEnabled === true && [ argument.providerId, argument ]; diff --git a/public/res/synchronizer.js b/public/res/synchronizer.js index a957f54a..44897bcb 100644 --- a/public/res/synchronizer.js +++ b/public/res/synchronizer.js @@ -9,7 +9,8 @@ define([ "classes/Provider", "providers/dropboxProvider", "providers/gdriveProvider", - "providers/gdrivesecProvider" + "providers/gdrivesecProvider", + "providers/gdriveterProvider" ], function($, _, utils, storage, eventMgr, fileSystem, fileMgr, Provider) { var synchronizer = {};