forked from External/greenlight
* Room setting to allow anyone to start a room * Update sample.env * merge v2.2.1
This commit is contained in:
committed by
Jesus Federico
parent
b23f94dfb5
commit
d3a9ae32a9
@ -50,6 +50,7 @@ $(document).on('turbolinks:load', function(){
|
||||
$("#createRoomModal form").attr("action", $("body").data('relative-root'))
|
||||
updateDropdown($(".dropdown-item[value='default']"))
|
||||
$("#room_mute_on_join").prop("checked", false)
|
||||
$("#room_anyone_can_start").prop("checked", false)
|
||||
|
||||
//show all elements & their children with a create-only class
|
||||
$(".create-only").each(function() {
|
||||
@ -104,6 +105,12 @@ $(document).on('turbolinks:load', function(){
|
||||
$("#room_mute_on_join").prop("checked", false)
|
||||
}
|
||||
|
||||
if(settings.anyoneCanStart){
|
||||
$("#room_anyone_can_start").prop("checked", true)
|
||||
} else { //default option
|
||||
$("#room_anyone_can_start").prop("checked", false)
|
||||
}
|
||||
|
||||
//set dropdown value
|
||||
if (settings.joinViaHtml5) {
|
||||
updateDropdown($(".dropdown-item[value='html5']"))
|
||||
|
Reference in New Issue
Block a user