Rename marketplace plugin to meetletacbfree (mdl_modules.name limit + CI table prefixes)
This commit is contained in:
@@ -54,9 +54,9 @@ require(['core/str', 'core/notification', 'core/templates', 'core/ajax'], functi
|
||||
const participantAddToForm = async(selectionTypeValue, selectionValue, selectedRole, canRemove) => {
|
||||
const participantData = JSON.parse(ELEMENT_SELECTOR.participantData().dataset.participantData);
|
||||
const [shost, spresenter, sparticipant] = await Promise.all([
|
||||
Str.get_string('role_host', 'meetletacbmarketplace'),
|
||||
Str.get_string('role_presenter', 'meetletacbmarketplace'),
|
||||
Str.get_string('role_participant', 'meetletacbmarketplace'),
|
||||
Str.get_string('role_host', 'meetletacbfree'),
|
||||
Str.get_string('role_presenter', 'meetletacbfree'),
|
||||
Str.get_string('role_participant', 'meetletacbfree'),
|
||||
]);
|
||||
const roles = {
|
||||
host: {id: 'host', label: shost},
|
||||
@@ -80,7 +80,7 @@ require(['core/str', 'core/notification', 'core/templates', 'core/ajax'], functi
|
||||
roles: Object.values(roles),
|
||||
canRemove: canRemove,
|
||||
};
|
||||
const {html, js} = await Templates.renderForPromise('mod_meetletacbmarketplace/participant_form_add', templateContext);
|
||||
const {html, js} = await Templates.renderForPromise('mod_meetletacbfree/participant_form_add', templateContext);
|
||||
const newNode = Templates.appendNodeContents(listTable, html, js)[0];
|
||||
newNode.querySelector('.participant-select').addEventListener('change', () => {
|
||||
participantListRoleUpdate(selectionTypeValue, selectionValue);
|
||||
@@ -337,7 +337,7 @@ require(['core/str', 'core/notification', 'core/templates', 'core/ajax'], functi
|
||||
hint.textContent = strLoading;
|
||||
}
|
||||
return Ajax.call([{
|
||||
methodname: 'mod_meetletacbmarketplace_search_server_meetings',
|
||||
methodname: 'mod_meetletacbfree_search_server_meetings',
|
||||
args: {
|
||||
query: query || '',
|
||||
limit: 10,
|
||||
|
||||
Reference in New Issue
Block a user