Merge branch 'MDL-74131-master' of https://github.com/aanabit/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2022-03-15 16:46:07 +01:00
commit 103365191c
4 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -110,9 +110,9 @@ define([
if (e.ajaxreturn.itemtype === 'tagflag') {
var row = $(e.target).closest('tr');
if (e.ajaxreturn.value === '0') {
row.removeClass('flagged-tag');
row.removeClass('table-warning');
} else {
row.addClass('flagged-tag');
row.addClass('table-warning');
}
}
});

View file

@ -183,7 +183,7 @@ class core_tag_manage_table extends table_sql {
* @return string added to the class="" attribute of the tr.
*/
public function get_row_class($row) {
return $row->flag ? 'flagged-tag' : '';
return $row->flag ? 'table-warning' : '';
}
/**