From 7957e32a9a262dd36411552a0c5195a24b346763 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Tue, 20 Jan 2015 16:41:47 +0100 Subject: [PATCH] Remove wipe and quit button It just cluttered the interface and wasn't OK on XS screens --- lib/Vroom/I18N/en.pm | 2 -- lib/Vroom/I18N/fr.pm | 2 -- public/js/vroom.js | 5 ----- templates/default/join.html.ep | 6 ------ 4 files changed, 15 deletions(-) diff --git a/lib/Vroom/I18N/en.pm b/lib/Vroom/I18N/en.pm index 38ca9d2..5c9db7b 100644 --- a/lib/Vroom/I18N/en.pm +++ b/lib/Vroom/I18N/en.pm @@ -210,8 +210,6 @@ our %Lexicon = ( "LOGOUT" => "Leave the room", "LEAVE_THIS_ROOM" => "Leave the room", "ARE_YOU_SURE_YOU_WANT_TO_LEAVE" => "Are you sure you want to leave this room ?", - "YOU_CAN_WIPE_DATA_BEFORE_LEAVING" => "You can wipe room data before you leave", - "WIPE_AND_QUIT" => "Wipe data and leave", "QUIT" => "Leave the room", "SET_YOUR_NAME_TO_CHAT" => "You need to set your name to be able to chat", "SEND_MESSAGE" => "Send the message", diff --git a/lib/Vroom/I18N/fr.pm b/lib/Vroom/I18N/fr.pm index da6d1ac..6818c0d 100644 --- a/lib/Vroom/I18N/fr.pm +++ b/lib/Vroom/I18N/fr.pm @@ -231,8 +231,6 @@ our %Lexicon = ( "LOGOUT" => "Quitter le salon", "LEAVE_THIS_ROOM" => "Quitter le salon", "ARE_YOU_SURE_YOU_WANT_TO_LEAVE" => "Êtes-vous sûr de vouloir quitter le salon ?", - "YOU_CAN_WIPE_DATA_BEFORE_LEAVING" => "Vous pouvez supprimer les données du salon avant de le quitter", - "WIPE_AND_QUIT" => "Supprimer les données et quitter", "QUIT" => "Quitter le salon", "SET_YOUR_NAME_TO_CHAT" => "Vous devez saisir votre nom avant de pouvoir tchater", "SEND_MESSAGE" => "Envoyer le message", diff --git a/public/js/vroom.js b/public/js/vroom.js index f6f4117..913a00e 100644 --- a/public/js/vroom.js +++ b/public/js/vroom.js @@ -2180,11 +2180,6 @@ function initVroom(room) { hangupCall; window.location.assign(rootUrl + 'goodbye/' + roomName); }); - $('#confirmWipeAndQuitButton').click(function(){ - wipeRoomData(); - hangupCall; - window.location.assign(rootUrl + 'goodbye/' + roomName); - }); window.onunload = window.onbeforeunload = hangupCall; // Go fullscreen on double click diff --git a/templates/default/join.html.ep b/templates/default/join.html.ep index 285f556..4883f5c 100644 --- a/templates/default/join.html.ep +++ b/templates/default/join.html.ep @@ -661,14 +661,8 @@

<%=l 'ARE_YOU_SURE_YOU_WANT_TO_LEAVE' %>

-

- <%=l 'YOU_CAN_WIPE_DATA_BEFORE_LEAVING' %> -