Sha256: adc29a2109f795073b0cb6b158fe9bf9db1a94230f6b25dca808e78daea8e532
Contents?: true
Size: 966 Bytes
Versions: 2
Compression:
Stored size: 966 Bytes
Contents
// use to give the preview of details for an event below a calendar var updateEventDescription = function(event, jsEvent) { $("#event_quick_description").empty(); $("#event_quick_description").append( $("<h3/>").append( $('<a/>', { text : event.title, href : event.url }) ) ).append(event.details); $("#event_quick_description").show(); } jQuery(function($) { $('a.show_hide_link').attach(ShowHideLink); $('a.view_events').attach(EventView); }); /* http://www.learningjquery.com/2007/08/clearing-form-data */ $.fn.clearForm = function() { return this.each(function() { var type = this.type, tag = this.tagName.toLowerCase(); if (tag == 'form') return $(':input',this).clearForm(); if (type == 'text' || type == 'password' || tag == 'textarea') this.value = ''; else if (type == 'checkbox' || type == 'radio') this.checked = false; else if (tag == 'select') this.selectedIndex = -1; }); };
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
event_calendar_engine-0.1.10 | public/javascripts/event_calendar/event_calendar.js |
event_calendar_engine-0.1.9 | public/javascripts/event_calendar/event_calendar.js |