forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
There is a new API method get_definition_copy() that is expected to return the definition structure as if the form was written from scratch via the editor. Such a prepared structure is passed to a controller's update_definition() method in the new target area. The same mechanism will be used for copying definitions from a shared area to a normal gradable area.
- Loading branch information
Showing
10 changed files
with
255 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/** | ||
* YUI module for advanced grading methods - the manage page | ||
* | ||
* @author David Mudrak <[email protected]> | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
*/ | ||
YUI.add('moodle-core_grading-manage', function(Y) { | ||
|
||
var MANAGE = function() { | ||
MANAGE.superclass.constructor.apply(this, arguments); | ||
} | ||
|
||
Y.extend(MANAGE, Y.Base, { | ||
|
||
initializer : function(config) { | ||
this.setup_messagebox(); | ||
}, | ||
|
||
setup_messagebox : function() { | ||
Y.one('#actionresultmessagebox span').setContent(M.util.get_string('clicktoclose', 'core_grading')); | ||
Y.one('#actionresultmessagebox').on('click', function(e) { | ||
e.halt(); | ||
var box = e.currentTarget; | ||
var anim = new Y.Anim({ | ||
node: box, | ||
from: { opacity: 1 }, | ||
to: { opacity: 0 }, | ||
}); | ||
anim.run(); | ||
anim.on('end', function() { | ||
var box = this.get('node'); // this === anim | ||
box.remove(true); | ||
}); | ||
}); | ||
} | ||
|
||
}, { | ||
NAME : 'grading_manage_page', | ||
ATTRS : { } | ||
}); | ||
|
||
M.core_grading = M.core_grading || {}; | ||
|
||
M.core_grading.init_manage = function(config) { | ||
return new MANAGE(config); | ||
} | ||
|
||
}, '@VERSION@', { requires:['base', 'anim'] }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters