diff --git a/public/js/vroom.js b/public/js/vroom.js index cf6a2f3..e73a875 100644 --- a/public/js/vroom.js +++ b/public/js/vroom.js @@ -1639,9 +1639,9 @@ function initVroom(room) { $('#authPassButton').removeClass('disabled'); } }); - $('#authForm').submit(function(event) { + $('#ownerAuthForm').submit(function(event) { event.preventDefault(); - var pass = $('#authPass').val(); + var pass = $('#ownerAuthPass').val(); $.ajax({ data: { req: JSON.stringify({ @@ -1664,8 +1664,6 @@ function initVroom(room) { else{ $.notify(data.msg, 'error'); } - // Close the auth menu - $('#authMenu').dropdown('toggle'); } }); }); diff --git a/templates/default/auth_modal.html.ep b/templates/default/auth_modal.html.ep new file mode 100644 index 0000000..8bd8fd6 --- /dev/null +++ b/templates/default/auth_modal.html.ep @@ -0,0 +1,40 @@ + + diff --git a/templates/default/join.html.ep b/templates/default/join.html.ep index 1bee3b6..e9f1958 100644 --- a/templates/default/join.html.ep +++ b/templates/default/join.html.ep @@ -100,30 +100,10 @@