lib/ruby_app/elements/navigation/page_link.js.haml in RubyApp-0.0.10 vs lib/ruby_app/elements/navigation/page_link.js.haml in RubyApp-0.0.11

- old
+ new

@@ -1,10 +1,10 @@ - self.rendered?(__FILE__) do :plain // #{__FILE__} $(document).ready(function() { - $("span.link a.page").click(function(event) { + $('span.link > a.page').click(function(event) { event.preventDefault(); - RubyApp.sendEvent({_class:'RubyApp::Elements::Navigation::PageLink::ClickedEvent', source_id:$(this).parent().attr('id'), page:$(this).attr('page')}); + RubyApp.sendEvent({_class:'RubyApp::Elements::Navigation::PageLink::ClickedEvent', source_id:$(this).parents('span.link').attr('id'), page:$(this).attr('page')}); }); }); = yield