3 ///////////////////////////////////////////////////////////////////////////
5 // NOTICE OF COPYRIGHT //
7 // Moodle - Modular Object-Oriented Dynamic Learning Environment //
8 // http://moodle.com //
10 // Copyright (C) 2001-3001 Martin Dougiamas http://dougiamas.com //
11 // (C) 2001-3001 Eloy Lafuente (stronk7) http://contiento.com //
13 // This program is free software; you can redistribute it and/or modify //
14 // it under the terms of the GNU General Public License as published by //
15 // the Free Software Foundation; either version 2 of the License, or //
16 // (at your option) any later version. //
18 // This program is distributed in the hope that it will be useful, //
19 // but WITHOUT ANY WARRANTY; without even the implied warranty of //
20 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
21 // GNU General Public License for more details: //
23 // http://www.gnu.org/copyleft/gpl.html //
25 ///////////////////////////////////////////////////////////////////////////
27 /// Register the needed events
29 /// Adjust the form on load
34 * This function disables some elements from the command and from the fields/keys/indexes drop downs
36 function disablePopupHeads() {
37 var popup = document.getElementById("menucommand");
41 if (option.value == "Fields" || option.value == "Keys" || option.value == "Indexes") {
42 popup[i].disabled = true;
45 var popup = document.getElementById("menufieldkeyindex");
49 if (option.value == "fieldshead" || option.value == "keyshead" || option.value == "indexeshead") {
50 popup[i].disabled = true;