diff --git a/chrome/content/zotero/preferences/preferences.js b/chrome/content/zotero/preferences/preferences.js index 02063bdb91..cfa05ffb38 100644 --- a/chrome/content/zotero/preferences/preferences.js +++ b/chrome/content/zotero/preferences/preferences.js @@ -486,55 +486,6 @@ function handleSyncReset(action) { break; - case 'full-sync': - var buttonFlags = (ps.BUTTON_POS_0) * (ps.BUTTON_TITLE_IS_STRING) - + (ps.BUTTON_POS_1) * (ps.BUTTON_TITLE_CANCEL) - + ps.BUTTON_POS_1_DEFAULT; - var index = ps.confirmEx( - null, - // TODO: localize - Zotero.getString('general.warning'), - "The local Zotero library will be completely merged with data belonging to user '" + account + "' on the Zotero server. " - + "Any unsynced changes will appear as conflicts.\n\n" - + "This option should generally be used only for troubleshooting sync errors.", - buttonFlags, - "Sync", - null, null, null, {} - ); - - switch (index) { - case 0: - // TODO: better error handling - Zotero.Sync.Server.resetClient(); - Zotero.Sync.Server.sync(/*{ - onSuccess: function () { - Zotero.Sync.Runner.setSyncIcon(); - ps.alert( - null, - "Full Sync Completed", - "The local Zotero library has been merged with data from the Zotero server." - ); - }, - onError: function (msg) { - // TODO: combine with error dialog for regular syncs - ps.alert( - null, - "Full Sync Failed", - "An error occurred while performing the full sync.\n\n" - + "Click the sync error icon in the Zotero toolbar " - + "for further information." - ); - Zotero.Sync.Runner.error(msg); - } - }*/); - break; - - // Cancel - case 1: - return; - } - - break; case 'reset-storage-history': var buttonFlags = (ps.BUTTON_POS_0) * (ps.BUTTON_TITLE_IS_STRING) diff --git a/chrome/content/zotero/preferences/preferences.xul b/chrome/content/zotero/preferences/preferences.xul index 9606af6e54..ac818249f2 100644 --- a/chrome/content/zotero/preferences/preferences.xul +++ b/chrome/content/zotero/preferences/preferences.xul @@ -355,14 +355,6 @@ To add a new preference: - - - - - - @@ -380,6 +372,10 @@ To add a new preference: + + +