From eb331ad0ad86af0295704dfd4c61b9278fb852b0 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Sun, 18 May 2014 19:38:40 +0200 Subject: [PATCH] Add titles to owner actions buttons --- public/js/vroom.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/public/js/vroom.js b/public/js/vroom.js index 3f57619..a8dece2 100644 --- a/public/js/vroom.js +++ b/public/js/vroom.js @@ -40,7 +40,10 @@ var locale = { s_IS_MUTING_s: '', s_IS_SUSPENDING_YOU: '', s_IS_SUSPENDING_s: '', - s_IS_KICKING_s: '' + s_IS_KICKING_s: '', + MUTE_PEER: '', + SUSPEND_PEER: '', + KICK_PEER: '' }; // Localize the strings we need @@ -256,17 +259,17 @@ function initVroom(room) { class: 'actionMute btn btn-default btn-sm', id: 'actionMute_' + id, click: function() { mutePeer(id) }, - })) + }).prop('title', locale.MUTE_PEER)) .append($('', { class: 'actionPause btn btn-default btn-sm', id: 'actionPause_' + id, click: function() { pausePeer(id) }, - })) + }).prop('title', locale.SUSPEND_PEER)) .append($('', { class: 'actionKick btn btn-default btn-sm', id: 'actionKick_' + id, click: function() { kickPeer(id) }, - }))); + }).prop('title', locale.KICK_PEER))); $(div).hover( function(){ if (peers.local.role == 'owner'){