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", "LOGOUT" => "Leave the room",
"LEAVE_THIS_ROOM" => "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 ?", "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", "QUIT" => "Leave the room",
"SET_YOUR_NAME_TO_CHAT" => "You need to set your name to be able to chat", "SET_YOUR_NAME_TO_CHAT" => "You need to set your name to be able to chat",
"SEND_MESSAGE" => "Send the message", "SEND_MESSAGE" => "Send the message",

@ -231,8 +231,6 @@ our %Lexicon = (
"LOGOUT" => "Quitter le salon", "LOGOUT" => "Quitter le salon",
"LEAVE_THIS_ROOM" => "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 ?", "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", "QUIT" => "Quitter le salon",
"SET_YOUR_NAME_TO_CHAT" => "Vous devez saisir votre nom avant de pouvoir tchater", "SET_YOUR_NAME_TO_CHAT" => "Vous devez saisir votre nom avant de pouvoir tchater",
"SEND_MESSAGE" => "Envoyer le message", "SEND_MESSAGE" => "Envoyer le message",

@ -2180,11 +2180,6 @@ function initVroom(room) {
hangupCall; hangupCall;
window.location.assign(rootUrl + 'goodbye/' + roomName); window.location.assign(rootUrl + 'goodbye/' + roomName);
}); });
$('#confirmWipeAndQuitButton').click(function(){
wipeRoomData();
hangupCall;
window.location.assign(rootUrl + 'goodbye/' + roomName);
});
window.onunload = window.onbeforeunload = hangupCall; window.onunload = window.onbeforeunload = hangupCall;
// Go fullscreen on double click // Go fullscreen on double click

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

Loading…
Cancel
Save