Remove wipe and quit button

It just cluttered the interface and wasn't OK on XS screens
master
Daniel Berteaud 10 years ago
parent ec912503f6
commit 7957e32a9a
  1. 2
      lib/Vroom/I18N/en.pm
  2. 2
      lib/Vroom/I18N/fr.pm
  3. 5
      public/js/vroom.js
  4. 6
      templates/default/join.html.ep

@ -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",

@ -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",

@ -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

@ -661,14 +661,8 @@
<p>
<%=l 'ARE_YOU_SURE_YOU_WANT_TO_LEAVE' %>
</p>
<p class="ownerEl">
<%=l 'YOU_CAN_WIPE_DATA_BEFORE_LEAVING' %>
</p>
</div>
<div class="modal-footer">
<button id="confirmWipeAndQuitButton" class="btn btn-danger ownerEl">
<%=l 'WIPE_AND_QUIT' %>
</button>
<button id="confirmQuitButton" class="btn btn-primary">
<%=l 'QUIT' %>
</button>

Loading…
Cancel
Save