Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
Fixes issues after jquery-impromptu update.
paweldomas581ffec5ed72
diff --git a/css/modaldialog.css b/css/modaldialog.cssindex b8f17b8bcc..d3025aa6b4 100644--- a/css/modaldialog.css+++ b/css/modaldialog.css@@ -26,4 +26,9 @@button.jqidefaultbutton #inviteLinkRef {color: #2c8ad2;+}++#inviteLinkRef {+ -webkit-user-select: text;+ user-select: text;}\ No newline at end of filediff --git a/modules/UI/UI.js b/modules/UI/UI.jsindex c5d04ec734..156b2f3347 100644--- a/modules/UI/UI.js+++ b/modules/UI/UI.js@@ -483,7 +483,7 @@ function onPasswordReqiured(callback) {message += APP.translation.translateString("dialog.passwordRequired");message += '</h2>' +- '<input id="lockKey" type="text" data-i18n=' ++ '<input name="lockKey" type="text" data-i18n=' +'"[placeholder]dialog.password" placeholder="' +APP.translation.translateString("dialog.password") +'" autofocus>';@@ -492,18 +492,17 @@ function onPasswordReqiured(callback) {true,"dialog.Ok",function (e, v, m, f) {},- function (event) {- document.getElementById('lockKey').focus();- },+ null,function (e, v, m, f) {if (v) {- var lockKey = document.getElementById('lockKey');- if (lockKey.value !== null) {- Toolbar.setSharedKey(lockKey.value);- callback(lockKey.value);+ var lockKey = f.lockKey;+ if (lockKey) {+ Toolbar.setSharedKey(lockKey);+ callback(lockKey);}}- }+ },+ ':input:first');}function onMucEntered(jid, id, displayName) {@@ -633,9 +632,9 @@ UI.showLoginPopup = function(callback)message += APP.translation.translateString("dialog.passwordRequired");message += '</h2>' +- '<input id="passwordrequired.username" type="text" ' ++ '<input name="username" type="text" ' +'placeholder="[email protected]" autofocus>' +- '<input id="passwordrequired.password" ' ++ '<input name="password" ' +'type="password" data-i18n="[placeholder]dialog.userPassword"' +' placeholder="user password">';UI.messageHandler.openTwoButtonDialog(null, null, null, message,@@ -643,17 +642,13 @@ UI.showLoginPopup = function(callback)"dialog.Ok",function (e, v, m, f) {if (v) {- var username = document.getElementById('passwordrequired.username');- var password = document.getElementById('passwordrequired.password');-- if (username.value !== null && password.value != null) {- callback(username.value, password.value);+ if (f.username !== null && f.password != null) {+ callback(f.username, f.password);}}},- function (event) {- document.getElementById('passwordrequired.username').focus();- }+ null, null, ':input:first'+);}diff --git a/modules/UI/prezi/Prezi.js b/modules/UI/prezi/Prezi.jsindex cc24bfa55c..b822a170c9 100644--- a/modules/UI/prezi/Prezi.js+++ b/modules/UI/prezi/Prezi.js@@ -82,23 +82,24 @@ var Prezi = {var openPreziState = {state0: {html: '<h2>' + html + '</h2>' +- '<input id="preziUrl" type="text" ' ++ '<input name="preziUrl" type="text" ' +'data-i18n="[placeholder]defaultPreziLink" data-i18n-options=\'' +JSON.stringify({"url": "http://prezi.com/wz7vhjycl7e6/my-prezi"}) +'\' placeholder="' + defaultUrl + '" autofocus>',persistent: false,buttons: buttons,- defaultButton: 1,- submit: function(e,v,m,f){+ focus: ':input:first',+ defaultButton: 0,+ submit: function (e, v, m, f) {e.preventDefault();if(v){- var preziUrl = document.getElementById('preziUrl');+ var preziUrl = f.preziUrl;- if (preziUrl.value)+ if (preziUrl){var urlValue- = encodeURI(UIUtil.escapeHtml(preziUrl.value));+ = encodeURI(UIUtil.escapeHtml(preziUrl));if (urlValue.indexOf('http://prezi.com/') != 0&& urlValue.indexOf('https://prezi.com/') != 0)@@ -130,10 +131,11 @@ var Prezi = {linkError,persistent: false,buttons: buttons1,+ focus: ':input:first',defaultButton: 1,- submit:function(e,v,m,f) {+ submit: function (e, v, m, f) {e.preventDefault();- if(v==0)+ if (v === 0)$.prompt.close();else$.prompt.goToState('state0');diff --git a/modules/UI/toolbars/Toolbar.js b/modules/UI/toolbars/Toolbar.jsindex 8b52a921ff..549cf47b61 100644--- a/modules/UI/toolbars/Toolbar.js+++ b/modules/UI/toolbars/Toolbar.js@@ -131,25 +131,23 @@ function toggleRecording() {var token = APP.translation.translateString("dialog.token");APP.UI.messageHandler.openTwoButtonDialog(null, null, null,'<h2>' + msg + '</h2>' +- '<input id="recordingToken" type="text" ' ++ '<input name="recordingToken" type="text" ' +' data-i18n="[placeholder]dialog.token" ' +'placeholder="' + token + '" autofocus>',false,"dialog.Save",function (e, v, m, f) {if (v) {- var token = document.getElementById('recordingToken');+ var token = f.recordingToken;- if (token.value) {- callback(UIUtil.escapeHtml(token.value));+ if (token) {+ callback(UIUtil.escapeHtml(token));}}},- function (event) {- document.getElementById('recordingToken').focus();- },- function () {- }+ null,+ function () { },+ ':input:first');}, Toolbar.setRecordingButtonState, Toolbar.setRecordingButtonState);}@@ -232,22 +230,21 @@ function callSipButtonClicked()"dialog.sipMsg");messageHandler.openTwoButtonDialog(null, null, null,'<h2>' + sipMsg + '</h2>' +- '<input id="sipNumber" type="text"' ++ '<input name="sipNumber" type="text"' +' value="' + defaultNumber + '" autofocus>',false,"dialog.Dial",function (e, v, m, f) {if (v) {- var numberInput = document.getElementById('sipNumber');- if (numberInput.value) {- APP.xmpp.dial(numberInput.value, 'fromnumber',- UI.getRoomName(), sharedKey);+ var numberInput = f.sipNumber;+ if (numberInput) {+ APP.xmpp.dial(+ numberInput, 'fromnumber', UI.getRoomName(), sharedKey);}}},- function (event) {- document.getElementById('sipNumber').focus();- }+ null,+ ':input:first');}@@ -377,24 +374,23 @@ var Toolbar = (function (my) {"dialog.yourPassword");messageHandler.openTwoButtonDialog(null, null, null,'<h2>' + msg + '</h2>' +- '<input id="lockKey" type="text"' ++ '<input name="lockKey" type="text"' +' data-i18n="[placeholder]dialog.yourPassword" ' +'placeholder="' + yourPassword + '" autofocus>',false,"dialog.Save",- function (e, v) {+ function (e, v, m, f) {if (v) {- var lockKey = document.getElementById('lockKey');+ var lockKey = f.lockKey;- if (lockKey.value) {- Toolbar.setSharedKey(UIUtil.escapeHtml(lockKey.value));+ if (lockKey) {+ Toolbar.setSharedKey(+ UIUtil.escapeHtml(lockKey));lockRoom(true);}}},- function () {- document.getElementById('lockKey').focus();- }+ null, null, 'input:first');}}@@ -438,6 +434,7 @@ var Toolbar = (function (my) {/*** Opens the settings dialog.+ * FIXME: not used ?*/my.openSettingsDialog = function () {var settings1 = APP.translation.generateTranslatonHTML(diff --git a/modules/UI/util/MessageHandler.js b/modules/UI/util/MessageHandler.jsindex ffc2380e3f..e3a3e97d51 100644--- a/modules/UI/util/MessageHandler.js+++ b/modules/UI/util/MessageHandler.js@@ -32,10 +32,14 @@ var messageHandler = (function(my) {* @param submitFunction function to be called on submit* @param loadedFunction function to be called after the prompt is fully loaded* @param closeFunction function to be called after the prompt is closed+ * @param focus optional focus selector or button index to be focused after+ * the dialog is opened+ * @param defaultButton index of default button which will be activated when+ * the user press 'enter'. Indexed from 0.*/my.openTwoButtonDialog = function(titleKey, titleString, msgKey, msgString,persistent, leftButtonKey, submitFunction, loadedFunction,- closeFunction)+ closeFunction, focus, defaultButton){var buttons = [];@@ -58,7 +62,8 @@ var messageHandler = (function(my) {title: title,persistent: false,buttons: buttons,- defaultButton: 1,+ defaultButton: defaultButton,+ focus: focus,loaded: loadedFunction,submit: submitFunction,close: closeFunction