From a8ffac5dcdd8e102865a52f519c11780e84dfe42 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 27 Mar 2017 11:30:09 +0200 Subject: [PATCH] Remove old code --- www/code/main.js | 1 - www/common/cryptpad-common.js | 55 ++--------------------------------- www/drive/main.js | 2 -- www/pad/main.js | 1 - www/slide/main.js | 1 - 5 files changed, 2 insertions(+), 58 deletions(-) diff --git a/www/code/main.js b/www/code/main.js index 2d12a8d06..88089766c 100644 --- a/www/code/main.js +++ b/www/code/main.js @@ -23,7 +23,6 @@ define([ }; $(function () { - Cryptpad.styleAlerts(); Cryptpad.addLoadingScreen(); var ifrw = module.ifrw = $('#pad-iframe')[0].contentWindow; diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index 14584220a..2e3e1c12c 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -1111,55 +1111,6 @@ define([ }); } break; - // TODO remove editshare, viewshare, and viewopen - case 'editshare': - button = $('', { - title: Messages.editShareTitle, - }).html('').append(' ' + Messages.editShare); - if (data && data.editHash) { - var editHash = data.editHash; - button.click(function () { - var baseUrl = window.location.origin + window.location.pathname + '#'; - var url = baseUrl + editHash; - var success = Clipboard.copy(url); - if (success) { - common.log(Messages.shareSuccess); - common.findOKButton().click(); - return; - } - }); - } - break; - case 'viewshare': - button = $('', { - title: Messages.viewShareTitle, - }).html('').append(' ' + Messages.viewShare); - if (data && data.viewHash) { - button.click(function () { - var baseUrl = window.location.origin + window.location.pathname + '#'; - var url = baseUrl + data.viewHash; - var success = Clipboard.copy(url); - if (success) { - common.log(Messages.shareSuccess); - common.findOKButton().click(); - return; - } - }); - } - break; - case 'viewopen': - button = $('', { - title: Messages.viewOpenTitle, - }).html('').append(' ' + Messages.viewOpen); - if (data && data.viewHash) { - button.click(function () { - var baseUrl = window.location.origin + window.location.pathname + '#'; - var url = baseUrl + data.viewHash; - common.findOKButton().click(); - window.open(url); - }); - } - break; case 'present': button = $('