Moodle 3.1 - how to use previous assignment grading interface?

Re: Moodle 3.1 - how to use previous assignment grading interface?

by Jim Judges -
Number of replies: 2

This is okay if you have access to these files.

Somebody else reported that if you change the grading URL to end with action=grade (instead of "action=grader") this presents the old interface - this could be useful although I am unsure how safe this method is? Ideally the assignment settings would allow this switch, rather than relying on the theme fix described above it would be good to be able to choose "grade" or "grader". AND/OR ideally it would be possible to configure the default display. Currently the default is the annotation screen which is not popular with everyone and not needed in many cases.

In reply to Jim Judges

Re: Moodle 3.1 - how to use previous assignment grading interface?

by Rebecca Trynes -

That is true, yes. You can change it via the url. I believe it's perfectly safe?

Absolutely agree about having those assignment settings: 100%!

Average of ratings: Useful (1)
In reply to Jim Judges

Re: Moodle 3.1 - how to use previous assignment grading interface?

by Cris Fuhrman -

It's possible to use Tamper Monkey to do this, without modifying your Moodle site. TamperMonkey is a plug-in for browsers that can run JavaScript on certain pages (the @match configuration). 

Here's the relevant code (I don't have old versions of Moodle to test this on, but it works for me):

// ==UserScript==
// @name         Moodle collapse review panel in grading
// @namespace    https://profs.etsmtl.ca/cfuhrman/
// @version      0.1
// @description  Save many clicks by collapsing the PDF review panel in grading
// @author       Christopher Fuhrman
// @match        https://*/mod/assign/view.php*action=grader*
// @require      https://code.jquery.com/jquery-latest.js
// @grant        none
// ==/UserScript==

// Note: the "action=grader" in the @match above is the 3.x grading interface, so this won't be invoked on older versions of Moodle

(function() {
    'use strict';

    $('button.collapse-none').removeClass('active');
    $('button.collapse-review-panel').addClass('active');
    $('[data-region=review-panel]').addClass('collapsed');
})();