GRN2-xx: Fixed issue with room settings not showing updated values (#727)

* Fixed issue with room settings not showing updated values

* Updated rake task to take provider
This commit is contained in:
farhatahmad
2019-08-06 14:03:12 -04:00
committed by Jesus Federico
parent 7bafd41a56
commit a5fd4a08b5
3 changed files with 13 additions and 5 deletions

View File

@@ -56,6 +56,7 @@ $(document).on('turbolinks:load', function(){
$("#room_mute_on_join").prop("checked", false)
$("#room_require_moderator_approval").prop("checked", false)
$("#room_anyone_can_start").prop("checked", false)
$("#room_all_join_moderator").prop("checked", false)
//show all elements & their children with a create-only class
$(".create-only").each(function() {
@@ -121,6 +122,12 @@ $(document).on('turbolinks:load', function(){
} else { //default option
$("#room_anyone_can_start").prop("checked", false)
}
if(settings.joinModerator){
$("#room_all_join_moderator").prop("checked", true)
} else { //default option
$("#room_all_join_moderator").prop("checked", false)
}
}
});