lib/ruby_app/elements/input.js.haml in RubyApp-0.0.55 vs lib/ruby_app/elements/input.js.haml in RubyApp-0.0.56
- old
+ new
@@ -1,9 +1,9 @@
- self.rendered?(__FILE__) do
:plain
// #{__FILE__}
$(document).ready(function() {
- $('input[type="text"]').live('change', function(event) {
+ $('input').live('change', function(event) {
event.preventDefault();
RubyApp.queueEvent({_class:'RubyApp::Elements::Input::ChangedEvent', source_id:$(this).attr('id'), value:$(this).val()}, true);
});
});
= yield