file survey.php was added on branch MOODLE_15_STABLE on 2006-03-10 07:27:54 +0000
This commit is contained in:
@@ -1,14 +1,5 @@
|
||||
// Miscellaneous core Javascript functions for Moodle
|
||||
|
||||
function popupchecker(msg) {
|
||||
var testwindow = window.open('itestwin.html', '', 'width=1,height=1,left=0,top=0,scrollbars=no');
|
||||
if (testwindow == null)
|
||||
{alert(msg);}
|
||||
else {
|
||||
testwindow.close();
|
||||
}
|
||||
}
|
||||
|
||||
function popUpProperties(inobj) {
|
||||
op = window.open();
|
||||
op.document.open('text/plain');
|
||||
@@ -81,9 +72,9 @@ function submitFormById(id) {
|
||||
}
|
||||
}
|
||||
|
||||
function select_all_in(elTagName, elClass, elId) {
|
||||
function select_all_in(elTagName, elId, elClass) {
|
||||
var inputs = document.getElementsByTagName('INPUT');
|
||||
inputs = filterByParent(inputs, function(el) {return findParentNode(el, elTagName, elClass, elId);});
|
||||
inputs = filterByParent(inputs, function(el) {return findParentNode(el, elTagName, elId, elClass);});
|
||||
for(var i = 0; i < inputs.length; ++i) {
|
||||
if(inputs[i].type == 'checkbox') {
|
||||
inputs[i].checked = 'checked';
|
||||
@@ -91,9 +82,9 @@ function select_all_in(elTagName, elClass, elId) {
|
||||
}
|
||||
}
|
||||
|
||||
function deselect_all_in(elTagName, elClass, elId) {
|
||||
function deselect_all_in(elTagName, elId, elClass) {
|
||||
var inputs = document.getElementsByTagName('INPUT');
|
||||
inputs = filterByParent(inputs, function(el) {return findParentNode(el, elTagName, elClass, elId);});
|
||||
inputs = filterByParent(inputs, function(el) {return findParentNode(el, elTagName, elId, elClass);});
|
||||
for(var i = 0; i < inputs.length; ++i) {
|
||||
if(inputs[i].type == 'checkbox') {
|
||||
inputs[i].checked = '';
|
||||
|
||||
Reference in New Issue
Block a user