Sha256: a7dcc5f6663990256eb706a1ec2361a6c7a26afc733125e184a8f301fa308939

Contents?: true

Size: 367 Bytes

Versions: 6

Compression:

Stored size: 367 Bytes

Contents

- self.rendered?(__FILE__) do
  :plain
    // #{__FILE__}
    $(document).ready(function() {
      $('input[type="checkbox"]').live('change', function(event) {
        event.preventDefault();
        RubyApp.queueEvent({_class:'RubyApp::Elements::Inputs::ToggleInput::ChangedEvent', source_id:$(this).attr('id'), value:this.checked}, true);
      });
    });
= yield

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
RubyApp-0.0.64 lib/ruby_app/elements/inputs/toggle_input.js.haml
RubyApp-0.0.63 lib/ruby_app/elements/inputs/toggle_input.js.haml
RubyApp-0.0.62 lib/ruby_app/elements/inputs/toggle_input.js.haml
RubyApp-0.0.61 lib/ruby_app/elements/inputs/toggle_input.js.haml
RubyApp-0.0.60 lib/ruby_app/elements/inputs/toggle_input.js.haml
RubyApp-0.0.59 lib/ruby_app/elements/inputs/toggle_input.js.haml