Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 238... Línea 238...
238
            }
238
            }
239
            node.after('change', this.handle_select_change, this);
239
            node.after('change', this.handle_select_change, this);
240
        }, this);
240
        }, this);
Línea 241... Línea 241...
241
 
241
 
242
        // Loop through the input fields.
242
        // Loop through the input fields.
243
        var inputs = this.get('node').all('input, a');
243
        var inputs = this.get('node').all('input, button');
244
        inputs.each(function(node) {
244
        inputs.each(function(node) {
245
            // Check if the current node is a calendar image field.
245
            // Check if the current node is a calendar image field.
246
            if (node.get('name').match(/\[calendar\]/)) {
246
            if (node.get('name').match(/\[calendar\]/)) {
247
                // Set it so that when the image is clicked the pop-up displays.
247
                // Set it so that when the image is clicked the pop-up displays.
Línea 379... Línea 379...
379
        }
379
        }
380
    },
380
    },
381
    toggle_calendar_image: function() {
381
    toggle_calendar_image: function() {
382
        // If the enable checkbox is not checked, disable the calendar image and prevent focus.
382
        // If the enable checkbox is not checked, disable the calendar image and prevent focus.
383
        if (!this.enablecheckbox.get('checked')) {
383
        if (!this.enablecheckbox.get('checked')) {
384
            this.calendarimage.addClass('disabled');
384
            this.calendarimage.setAttribute('disabled');
385
            this.release_calendar();
385
            this.release_calendar();
386
        } else {
386
        } else {
387
            this.calendarimage.removeClass('disabled');
387
            this.calendarimage.removeAttribute('disabled');
388
        }
388
        }
389
    }
389
    }
390
};
390
};
391
Y.extend(CALENDAR, Y.Base, CALENDAR.prototype, {
391
Y.extend(CALENDAR, Y.Base, CALENDAR.prototype, {
392
    NAME: 'Date Selector',
392
    NAME: 'Date Selector',