GRN-69: Fixed javascript bug related to room validation (#388)

* Fixed javascript bug related to room validation

* More javascript bugs

* Removed room name length error

* Fixed issue with room post url
This commit is contained in:
farhatahmad
2019-03-05 15:07:14 -05:00
committed by Jesus Federico
parent 37af17fae1
commit ef8fc2c0e4
4 changed files with 29 additions and 31 deletions

View File

@ -55,7 +55,10 @@ $(document).on('turbolinks:load', function(){
// Display and update all fields related to creating a room in the createRoomModal
$("#create-room").click(function(){
$("#create-room-name").val("")
$("#createRoomModal form").attr("action", "/")
var relative_url_root = window.location.pathname.split("/")[1];
$("#createRoomModal form").attr("action", "/" + relative_url_root)
updateDropdown($(".dropdown-item[value='default']"))
$("#room_mute_on_join").prop("checked", false)