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)
}
}
});

View File

@ -33,7 +33,7 @@ $(document).on('turbolinks:load', function(){
// Add the role tag
var tag_container = $("#role-tag-container");
tag_container.append("<span id=\"user-role-tag_" + select_role_id + "\" style=\"background-color:" + selected_role.data("colour") + ";\" class=\"tag\">" +
tag_container.append("<span id=\"user-role-tag_" + select_role_id + "\" style=\"background-color:" + selected_role.data("colour") + ";\" class=\"tag user-role-tag\">" +
selected_role.text() + "<a data-role-id=\"" + select_role_id + "\" class=\"tag-addon clear-role\"><i data-role-id=\"" + select_role_id + "\" class=\"fas fa-times\"></i></a></span>");
// Update the role ids input that gets submited on user update