__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
M.mod_assign = {};
M.mod_assign.init_tree = function(Y, expand_all, htmlid) {
var treeElement = Y.one('#'+htmlid);
if (treeElement) {
Y.use('yui2-treeview', 'node-event-simulate', function(Y) {
var tree = new Y.YUI2.widget.TreeView(htmlid);
tree.subscribe("clickEvent", function(node, event) {
// We want normal clicking which redirects to url.
return false;
});
tree.subscribe("enterKeyPressed", function(node) {
// We want keyboard activation to trigger a click on the first link.
Y.one(node.getContentEl()).one('a').simulate('click');
return false;
});
if (expand_all) {
tree.expandAll();
}
tree.render();
});
}
};
M.mod_assign.init_grading_table = function(Y) {
Y.use('node', function(Y) {
const checkboxes = Y.all('td.c0 input');
let rowelement;
checkboxes.each(function(node) {
node.on('change', function(e) {
rowelement = e.currentTarget.get('parentNode').get('parentNode');
if (e.currentTarget.get('checked')) {
rowelement.removeClass('unselectedrow');
rowelement.addClass('selectedrow');
} else {
rowelement.removeClass('selectedrow');
rowelement.addClass('unselectedrow');
}
});
rowelement = node.get('parentNode').get('parentNode');
if (node.get('checked')) {
rowelement.removeClass('unselectedrow');
rowelement.addClass('selectedrow');
} else {
rowelement.removeClass('selectedrow');
rowelement.addClass('unselectedrow');
}
});
const selectall = Y.one('th.c0 input');
if (selectall) {
selectall.on('change', function(e) {
Y.all('td.c0 input[type="checkbox"]').each(function(node) {
rowelement = node.get('parentNode').get('parentNode');
if (e.currentTarget.get('checked')) {
node.set('checked', true);
rowelement.removeClass('unselectedrow');
rowelement.addClass('selectedrow');
} else {
node.set('checked', false);
rowelement.removeClass('selectedrow');
rowelement.addClass('unselectedrow');
}
});
});
}
var quickgrade = Y.all('.gradingtable .quickgrade');
quickgrade.each(function(quick) {
quick.on('change', function(e) {
this.get('parentNode').addClass('quickgrademodified');
});
});
});
};
M.mod_assign.init_plugin_summary = function(Y, subtype, type, submissionid) {
var suffix = subtype + '_' + type + '_' + submissionid;
var classname = 'contract_' + suffix;
var contract = Y.one('.' + classname);
if (contract) {
contract.on('click', function(e) {
e.preventDefault();
var link = e.currentTarget || e.target;
var linkclasses = link.getAttribute('class').split(' ');
var thissuffix = '';
for (var i = 0; i < linkclasses.length; i++) {
classname = linkclasses[i];
if (classname.indexOf('contract_') == 0) {
thissuffix = classname.substr(9);
}
}
var fullclassname = 'full_' + thissuffix;
var full = Y.one('.' + fullclassname);
if (full) {
full.hide(false);
}
var summaryclassname = 'summary_' + thissuffix;
var summary = Y.one('.' + summaryclassname);
if (summary) {
summary.show(false);
summary.one('a.expand_' + thissuffix).focus();
}
});
}
classname = 'expand_' + suffix;
var expand = Y.one('.' + classname);
var full = Y.one('.full_' + suffix);
if (full) {
full.hide(false);
full.toggleClass('hidefull');
}
if (expand) {
expand.on('click', function(e) {
e.preventDefault();
var link = e.currentTarget || e.target;
var linkclasses = link.getAttribute('class').split(' ');
var thissuffix = '';
for (var i = 0; i < linkclasses.length; i++) {
classname = linkclasses[i];
if (classname.indexOf('expand_') == 0) {
thissuffix = classname.substr(7);
}
}
var summaryclassname = 'summary_' + thissuffix;
var summary = Y.one('.' + summaryclassname);
if (summary) {
summary.hide(false);
}
var fullclassname = 'full_' + thissuffix;
full = Y.one('.' + fullclassname);
if (full) {
full.show(false);
full.one('a.contract_' + thissuffix).focus();
}
});
}
};
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| amd | Folder | 0777 |
|
|
| backup | Folder | 0777 |
|
|
| classes | Folder | 0777 |
|
|
| db | Folder | 0777 |
|
|
| feedback | Folder | 0777 |
|
|
| lang | Folder | 0777 |
|
|
| pix | Folder | 0777 |
|
|
| submission | Folder | 0777 |
|
|
| templates | Folder | 0777 |
|
|
| tests | Folder | 0777 |
|
|
| yui | Folder | 0777 |
|
|
| UPGRADING.md | File | 3.53 KB | 0777 |
|
| adminlib.php | File | 12.05 KB | 0777 |
|
| adminmanageplugins.php | File | 1.41 KB | 0777 |
|
| assignmentplugin.php | File | 23.57 KB | 0777 |
|
| batchsetallocatedmarkerform.php | File | 2.33 KB | 0777 |
|
| batchsetmarkingworkflowstateform.php | File | 3.73 KB | 0777 |
|
| deprecatedlib.php | File | 2.17 KB | 0777 |
|
| extensionform.php | File | 8.01 KB | 0777 |
|
| externallib.php | File | 131.95 KB | 0777 |
|
| feedbackplugin.php | File | 8.01 KB | 0777 |
|
| gradeform.php | File | 3.69 KB | 0777 |
|
| gradingbatchoperationsform.php | File | 4.96 KB | 0777 |
|
| gradingoptionsform.php | File | 1.09 KB | 0777 |
|
| gradingtable.php | File | 78.38 KB | 0777 |
|
| index.php | File | 1.84 KB | 0777 |
|
| lib.php | File | 65.07 KB | 0777 |
|
| locallib.php | File | 407.16 KB | 0777 |
|
| mod_form.php | File | 18.29 KB | 0777 |
|
| module.js | File | 5.12 KB | 0777 |
|
| override_form.php | File | 15.07 KB | 0777 |
|
| overridedelete.php | File | 3.8 KB | 0777 |
|
| overrideedit.php | File | 9.15 KB | 0777 |
|
| overrides.php | File | 12.93 KB | 0777 |
|
| quickgradingform.php | File | 2.12 KB | 0777 |
|
| renderable.php | File | 29.48 KB | 0777 |
|
| renderer.php | File | 1.11 KB | 0777 |
|
| settings.php | File | 20.23 KB | 0777 |
|
| styles.css | File | 33.55 KB | 0777 |
|
| submission_form.php | File | 2.19 KB | 0777 |
|
| submissionconfirmform.php | File | 2.37 KB | 0777 |
|
| submissionplugin.php | File | 4.79 KB | 0777 |
|
| upgrade.txt | File | 11.95 KB | 0777 |
|
| version.php | File | 1.13 KB | 0777 |
|
| view.php | File | 1.9 KB | 0777 |
|