Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 30... Línea 30...
30
            }
30
            }
31
            node.after('change', this.handle_select_change, this);
31
            node.after('change', this.handle_select_change, this);
32
        }, this);
32
        }, this);
Línea 33... Línea 33...
33
 
33
 
34
        // Loop through the input fields.
34
        // Loop through the input fields.
35
        var inputs = this.get('node').all('input, a');
35
        var inputs = this.get('node').all('input, button');
36
        inputs.each(function(node) {
36
        inputs.each(function(node) {
37
            // Check if the current node is a calendar image field.
37
            // Check if the current node is a calendar image field.
38
            if (node.get('name').match(/\[calendar\]/)) {
38
            if (node.get('name').match(/\[calendar\]/)) {
39
                // Set it so that when the image is clicked the pop-up displays.
39
                // Set it so that when the image is clicked the pop-up displays.
Línea 171... Línea 171...
171
        }
171
        }
172
    },
172
    },
173
    toggle_calendar_image: function() {
173
    toggle_calendar_image: function() {
174
        // If the enable checkbox is not checked, disable the calendar image and prevent focus.
174
        // If the enable checkbox is not checked, disable the calendar image and prevent focus.
175
        if (!this.enablecheckbox.get('checked')) {
175
        if (!this.enablecheckbox.get('checked')) {
176
            this.calendarimage.addClass('disabled');
176
            this.calendarimage.setAttribute('disabled');
177
            this.release_calendar();
177
            this.release_calendar();
178
        } else {
178
        } else {
179
            this.calendarimage.removeClass('disabled');
179
            this.calendarimage.removeAttribute('disabled');
180
        }
180
        }
181
    }
181
    }
182
};
182
};
183
Y.extend(CALENDAR, Y.Base, CALENDAR.prototype, {
183
Y.extend(CALENDAR, Y.Base, CALENDAR.prototype, {
184
    NAME: 'Date Selector',
184
    NAME: 'Date Selector',