mirrored from git://git.moodle.org/moodle.git
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Checking in the code for the "improvements to the quiz results overvi…
…ew page" project, commissioned by the University of York. Enjoy!
- Loading branch information
defacer
committed
Mar 8, 2005
1 parent
f05512f
commit 526a130
Showing
2 changed files
with
216 additions
and
79 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
function select_all() { | ||
var inputs = document.getElementsByTagName('INPUT'); | ||
for(var i = 0; i < inputs.length; ++i) { | ||
if(inputs[i].type == 'checkbox') { | ||
inputs[i].checked = 'checked'; | ||
} | ||
} | ||
} | ||
|
||
function deselect_all() { | ||
var inputs = document.getElementsByTagName('INPUT'); | ||
for(var i = 0; i < inputs.length; ++i) { | ||
if(inputs[i].type == 'checkbox') { | ||
inputs[i].checked = ''; | ||
} | ||
} | ||
} | ||
|
||
function confirm_if(expr, message) { | ||
if(!expr) { | ||
return true; | ||
} | ||
return confirm(message); | ||
} |