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 = $('