Sha256: 6bafa697093b1f0ef13639ad89c8abb1c5a4a602e889a22126b9b10d8c868a60

Contents?: true

Size: 368 Bytes

Versions: 32

Compression:

Stored size: 368 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}, false);
      });
    });
= yield

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
RubyApp-0.2.7 lib/ruby_app/elements/inputs/toggle_input.js.haml
RubyApp-0.2.6 lib/ruby_app/elements/inputs/toggle_input.js.haml
RubyApp-0.2.5 lib/ruby_app/elements/inputs/toggle_input.js.haml
RubyApp-0.2.4 lib/ruby_app/elements/inputs/toggle_input.js.haml
RubyApp-0.2.3 lib/ruby_app/elements/inputs/toggle_input.js.haml
RubyApp-0.2.2 lib/ruby_app/elements/inputs/toggle_input.js.haml
RubyApp-0.2.1 lib/ruby_app/elements/inputs/toggle_input.js.haml
RubyApp-0.2.0 lib/ruby_app/elements/inputs/toggle_input.js.haml
RubyApp-0.0.91 lib/ruby_app/elements/inputs/toggle_input.js.haml
RubyApp-0.0.90 lib/ruby_app/elements/inputs/toggle_input.js.haml
RubyApp-0.0.89 lib/ruby_app/elements/inputs/toggle_input.js.haml
RubyApp-0.0.88 lib/ruby_app/elements/inputs/toggle_input.js.haml
RubyApp-0.0.87 lib/ruby_app/elements/inputs/toggle_input.js.haml
RubyApp-0.0.86 lib/ruby_app/elements/inputs/toggle_input.js.haml
RubyApp-0.0.85 lib/ruby_app/elements/inputs/toggle_input.js.haml
RubyApp-0.0.84 lib/ruby_app/elements/inputs/toggle_input.js.haml
RubyApp-0.0.83 lib/ruby_app/elements/inputs/toggle_input.js.haml
RubyApp-0.0.82 lib/ruby_app/elements/inputs/toggle_input.js.haml
RubyApp-0.0.81 lib/ruby_app/elements/inputs/toggle_input.js.haml
RubyApp-0.0.80 lib/ruby_app/elements/inputs/toggle_input.js.haml