__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
/**
* Template management code.
*
* @module quizaccess_seb/managetemplates
* @copyright 2020 Dmitrii Metelkin <dmitriim@catalyst-au.net>
*/
define(
['jquery', 'core/ajax', 'core/str', 'core/notification'],
function($, ajax, str, notification) {
var manager = {
/**
* Confirm removal of the specified template.
*
* @method removeTemplate
* @param {EventFacade} e The EventFacade
*/
removeTemplate: function(e) {
e.preventDefault();
var targetUrl = $(e.currentTarget).attr('href');
str.get_strings([
{
key: 'confirmtemplateremovaltitle',
component: 'quizaccess_seb'
},
{
key: 'confirmtemplateremovalquestion',
component: 'quizaccess_seb'
},
{
key: 'yes',
component: 'moodle'
},
{
key: 'no',
component: 'moodle'
}
])
.then(function(s) {
notification.confirm(s[0], s[1], s[2], s[3], function() {
window.location = targetUrl;
});
return;
})
.catch();
},
/**
* Setup the template management UI.
*
* @method setup
*/
setup: function() {
$('body').delegate('[data-action="delete"]', 'click', manager.removeTemplate);
}
};
return /** @alias module:quizaccess_seb/managetemplates */ {
/**
* Setup the template management UI.
*
* @method setup
*/
setup: manager.setup
};
});
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| managetemplates.js | File | 2.03 KB | 0777 |
|
| validate_quiz_access.js | File | 4.23 KB | 0777 |
|
| view.js | File | 2.4 KB | 0777 |
|