From 6dd5b43f01dcdb79f5f4a1b1d2948e9e5ed79f5d Mon Sep 17 00:00:00 2001 From: "Shamiso.Jaravaza" <33659194+ssj365@users.noreply.github.com> Date: Thu, 26 Jan 2023 14:36:22 -0700 Subject: [PATCH] CONTRIB-9167: Fix lock settings (#606) --- locallib.php | 2 +- .../moodle-mod_bigbluebuttonbn-modform-debug.js | 3 +++ .../moodle-mod_bigbluebuttonbn-modform-min.js | 4 ++-- .../moodle-mod_bigbluebuttonbn-modform.js | 3 +++ yui/src/modform/js/modform.js | 3 +++ 5 files changed, 12 insertions(+), 3 deletions(-) diff --git a/locallib.php b/locallib.php index 9cc3450a0..7d7de425c 100644 --- a/locallib.php +++ b/locallib.php @@ -2495,7 +2495,7 @@ function bigbluebuttonbn_get_instance_type_profiles() { BIGBLUEBUTTONBN_TYPE_ROOM_ONLY => array('id' => BIGBLUEBUTTONBN_TYPE_ROOM_ONLY, 'name' => get_string('instance_type_room_only', 'bigbluebuttonbn'), 'features' => array('showroom', 'welcomemessage', 'voicebridge', 'waitformoderator', 'userlimit', - 'recording', 'sendnotifications', 'preuploadpresentation', 'permissions', 'schedule', 'groups', + 'recording', 'lock', 'sendnotifications', 'preuploadpresentation', 'permissions', 'schedule', 'groups', 'modstandardelshdr', 'availabilityconditionsheader', 'tagshdr', 'competenciessection', 'clienttype', 'completionattendance', 'completionengagement', 'availabilityconditionsheader')), BIGBLUEBUTTONBN_TYPE_RECORDING_ONLY => array('id' => BIGBLUEBUTTONBN_TYPE_RECORDING_ONLY, diff --git a/yui/build/moodle-mod_bigbluebuttonbn-modform/moodle-mod_bigbluebuttonbn-modform-debug.js b/yui/build/moodle-mod_bigbluebuttonbn-modform/moodle-mod_bigbluebuttonbn-modform-debug.js index 03e6d9e53..4f7e6e7ac 100644 --- a/yui/build/moodle-mod_bigbluebuttonbn-modform/moodle-mod_bigbluebuttonbn-modform-debug.js +++ b/yui/build/moodle-mod_bigbluebuttonbn-modform/moodle-mod_bigbluebuttonbn-modform-debug.js @@ -63,6 +63,9 @@ M.mod_bigbluebuttonbn.modform = { // Show recordings settings validation. this.showFieldset('id_recordings', showAll || this.isFeatureEnabled(profileType, 'showrecordings')); + // Show lock settings validation. + this.showFieldset('id_lock', showAll || + this.isFeatureEnabled(profileType, 'lock')); // Show recordings imported settings validation. this.showInput('id_recordings_imported', showAll || this.isFeatureEnabled(profileType, 'showrecordings')); diff --git a/yui/build/moodle-mod_bigbluebuttonbn-modform/moodle-mod_bigbluebuttonbn-modform-min.js b/yui/build/moodle-mod_bigbluebuttonbn-modform/moodle-mod_bigbluebuttonbn-modform-min.js index b6ce76b41..71ab5f5db 100644 --- a/yui/build/moodle-mod_bigbluebuttonbn-modform/moodle-mod_bigbluebuttonbn-modform-min.js +++ b/yui/build/moodle-mod_bigbluebuttonbn-modform/moodle-mod_bigbluebuttonbn-modform-min.js @@ -1,2 +1,2 @@ -YUI.add("moodle-mod_bigbluebuttonbn-modform",function(e,t){M.mod_bigbluebuttonbn=M.mod_bigbluebuttonbn||{},M.mod_bigbluebuttonbn.modform={bigbluebuttonbn:{},strings:{},init:function(t){this.bigbluebuttonbn=t,this.strings={as:M.util.get_string("mod_form_field_participant_list_text_as","bigbluebuttonbn"),viewer:M.util.get_string("mod_form_field_participant_bbb_role_viewer","bigbluebuttonbn"),moderator:M.util.get_string("mod_form_field_participant_bbb_role_moderator","bigbluebuttonbn"),remove:M.util.get_string("mod_form_field_participant_list_action_remove","bigbluebuttonbn")},this.updateInstanceTypeProfile(),this.participantListInit()},updateInstanceTypeProfile:function(){var t=e.one("#id_type"),i=this.bigbluebuttonbn.instanceTypeDefault;null!==t&&(i=t.get("value")),this.applyInstanceTypeProfile(i)},applyInstanceTypeProfile:function(t){var i=this.isFeatureEnabled(t,"all");this.showFieldset("id_room",i||this.isFeatureEnabled(t,"showroom")),this.showInput("id_record",i||this.isFeatureEnabled(t,"showroom")),this.showFieldset("id_recordings",i||this.isFeatureEnabled(t,"showrecordings")),this.showInput("id_recordings_imported",i||this.isFeatureEnabled(t,"showrecordings")),this.showFieldset("id_preuploadpresentation",i||this.isFeatureEnabled(t,"preuploadpresentation")),this.showFieldset("id_permissions",i||this.isFeatureEnabled(t,"permissions")),this.showFieldset("id_schedule",i||this.isFeatureEnabled(t,"schedule")),this.showFieldset("id_modstandardelshdr",i||this.isFeatureEnabled(t,"modstandardelshdr")),this.showFieldset("id_availabilityconditionsheader",i||this.isFeatureEnabled(t,"availabilityconditionsheader")),this.showFieldset("id_tagshdr",i||this.isFeatureEnabled(t,"tagshdr")),this.showFieldset("id_competenciessection",i||this.isFeatureEnabled(t,"competenciessection")),this.showFormGroup("completionattendancegroup",i||this.isFeatureEnabled(t,"completionattendance")),this.showFormGroup("completionengagementgroup",i||this.isFeatureEnabled(t,"completionengagement"))},isFeatureEnabled:function(t,i){return-1!=this.bigbluebuttonbn.instanceTypeProfiles[t].features.indexOf(i)},showFieldset:function(t,i){t=e.one("#"+t);t&&(i?t.setStyle("display","block"):t.setStyle("display","none"))},showInput:function(t,i){var t=e.one("#"+t);t&&(t=t.ancestor("div").ancestor("div"),i?t.setStyle("display","block"):t.setStyle("display","none"))},showFormGroup:function(t,i){t=e.one("#fgroup_id_"+t);t&&(i?t.removeClass("hidden"):t.addClass("hidden"))},participantSelectionSet:function(){var t,i,e,n;for(this.selectClear("bigbluebuttonbn_participant_selection"),t=document.getElementById("bigbluebuttonbn_participant_selection_type"),i=0;i"+this.bigbluebuttonbn.participantData[t].name,r.innerHTML+=("all"!==t?": ":"")+"",(r=b.insertCell(1)).innerHTML="","all"!==t&&(r.innerHTML=this.bigbluebuttonbn.participantData[t].children[i].name),n=(n=(n=" "+this.strings.as+" ")+('",b.insertCell(2 -).innerHTML=n,(r=b.insertCell(3)).width="20px",b=this.strings.remove,s="btn btn-secondary btn-sm",this.bigbluebuttonbn.iconsEnabled&&(b=this.bigbluebuttonbn.pixIconDelete,s="btn btn-link"),n="",p&&(n=(n=''+b+""),r.innerHTML=n},participantListRoleUpdate:function(t,i){for(var e=document.getElementById("participant_list_role_"+t+"-"+i),n=0;n"+this.bigbluebuttonbn.participantData[t].name,r.innerHTML+=("all"!==t?": ":"")+"",(r=b.insertCell(1)).innerHTML="","all"!==t&&(r.innerHTML=this.bigbluebuttonbn.participantData[t].children[i].name),n=(n=(n=" "+this.strings.as+" ")+('",b.insertCell(2).innerHTML=n,(r=b.insertCell(3)).width="20px",b=this.strings.remove,o="btn btn-secondary btn-sm",this.bigbluebuttonbn.iconsEnabled&&(b=this.bigbluebuttonbn.pixIconDelete,o="btn btn-link"),n="",p&&(n=(n=''+b+""),r.innerHTML=n},participantListRoleUpdate:function(t,i){for(var e=document.getElementById("participant_list_role_"+t+"-"+i),n=0;n