diff --git a/public/js/vroom.js b/public/js/vroom.js index 3055015..2cf9dcc 100644 --- a/public/js/vroom.js +++ b/public/js/vroom.js @@ -243,7 +243,10 @@ function initIndex(){ e.preventDefault(); // Do not submit if we know the name is invalid if (!$('#roomName').val().match(/^[\w\-]{0,49}$/)){ - $('#roomName').notify(locale.ERROR_NAME_INVALID, 'error'); + $('#roomName').parent().parent().notify(locale.ERROR_NAME_INVALID, { + class: 'error', + position: 'bottom center' + }); } else{ $.ajax({ @@ -263,7 +266,7 @@ function initIndex(){ $('#conflictModal').modal('show'); } else{ - $('#roomName').notify(data.msg, 'error'); + $('#roomName').parent().parent().notify(data.msg, 'error'); } }, error: function(){ diff --git a/templates/default/index.html.ep b/templates/default/index.html.ep index dbfb7b1..991c437 100644 --- a/templates/default/index.html.ep +++ b/templates/default/index.html.ep @@ -11,23 +11,23 @@
-
-
- - - - - +
+ +
+
+ + +