Sha256: cabb5008e39992e275d2bbe80cf08a5ad33c3498be44aacd334bcbe36999cae6
Contents?: true
Size: 964 Bytes
Versions: 5
Compression:
Stored size: 964 Bytes
Contents
- self.rendered?(__FILE__) do :plain // #{__FILE__} $(document).ready(function() { $("div.month table thead tr td a.previous").live('click', function(event) { event.preventDefault(); RubyApp.sendEvent({_class:'RubyApp::Elements::Calendars::Month::MovedEvent', source_id:$(this).parents('div.month').attr('id'), unit:'month', amount:-1}); }); $("div.month table thead tr td a.next").live('click', function(event) { event.preventDefault(); RubyApp.sendEvent({_class:'RubyApp::Elements::Calendars::Month::MovedEvent', source_id:$(this).parents('div.month').attr('id'), unit:'month', amount:1}); }); $("div.month table tbody tr td a.day").live('click', function(event) { event.preventDefault(); RubyApp.sendEvent({_class:'RubyApp::Elements::Calendars::Month::ChangedEvent', source_id:$(this).parents('div.month').attr('id'), date:$(this).attr('date')}); }); }); = yield
Version data entries
5 entries across 5 versions & 1 rubygems