Skip to content

Commit

Permalink
replaced M.core.alert with modal
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Opitz committed Dec 18, 2024
1 parent 57e2687 commit fd24c16
Show file tree
Hide file tree
Showing 7 changed files with 103 additions and 70 deletions.
3 changes: 3 additions & 0 deletions amd/build/coursework.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions amd/build/coursework.min.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions amd/build/coursework_edit.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions amd/build/coursework_edit.min.js.map

Large diffs are not rendered by default.

6 changes: 2 additions & 4 deletions amd/src/coursework.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ define('mod_coursework/coursework', ['jquery', 'core/log'], function($) {
return {
init: function() {
var table_obj_list = [];
// var is_responsive = false;
var tableobject = 0;

$(document).ready(function() {
Expand Down Expand Up @@ -60,7 +59,6 @@ define('mod_coursework/coursework', ['jquery', 'core/log'], function($) {
'datatables.responsive'],
function() {
if (isMobileDevice() && $(window).width() < 768) {
// is_responsive = true;
initDatatable();

$('.datatabletest').on('order.dt', function() {
Expand Down Expand Up @@ -93,7 +91,7 @@ define('mod_coursework/coursework', ['jquery', 'core/log'], function($) {
me.find('span').html(' ' + me.find('span').html());
}
});
// console.log(submissionswrapper);
window.console.log(submissionswrapper);

$('<div id="datatable_top_loading_message" class="text-center submission-loading">' +
'<i class="fa fa-spinner fa-spin"></i> ' + langmessage.loadingpagination + '</div>').
Expand Down Expand Up @@ -308,7 +306,7 @@ define('mod_coursework/coursework', ['jquery', 'core/log'], function($) {
table = table_obj_list[table_id];
var headerclass = $(this).hasClass('splitter-firstname') ? 'firstname_cell' : 'lastname_cell';
headerclass = $(this).hasClass('splitter-email') ? 'email_cell' : headerclass;
// console.log(headerclass);
window.console.log(headerclass);
var sortColumn = table.column('.' + headerclass).index();
table.order([sortColumn, sortby]).draw();

Expand Down
Loading

0 comments on commit fd24c16

Please sign in to comment.