Browse Source

Fixes a JS error in the invite prompt when there's no room url.

j8
George Politis 10 years ago
parent
commit
57cd2647f3
2 changed files with 1625 additions and 1620 deletions
  1. 1619
    1616
      libs/app.bundle.js
  2. 6
    4
      modules/UI/toolbars/Toolbar.js

+ 1619
- 1616
libs/app.bundle.js
File diff suppressed because it is too large
View File


+ 6
- 4
modules/UI/toolbars/Toolbar.js View File

@@ -333,7 +333,8 @@ var Toolbar = (function (my) {
333 333
         if (inviteLink) {
334 334
             inviteLink.value = roomUrl;
335 335
             inviteLink.select();
336
-            document.getElementById('jqi_state0_buttonInvite').disabled = false;
336
+            $('#inviteLinkRef').parent()
337
+                .find('button[value=true]').prop('disabled', false);
337 338
         }
338 339
     };
339 340
 
@@ -426,12 +427,13 @@ var Toolbar = (function (my) {
426 427
                     }
427 428
                 }
428 429
             },
429
-            function () {
430
+            function (event) {
430 431
                 if (roomUrl) {
431 432
                     document.getElementById('inviteLinkRef').select();
432 433
                 } else {
433
-                    document.getElementById('jqi_state0_buttonInvite')
434
-                        .disabled = true;
434
+                    if (event && event.target)
435
+                        $(event.target)
436
+                            .find('button[value=true]').prop('disabled', true);
435 437
                 }
436 438
             }
437 439
         );

Loading…
Cancel
Save