Sha256: d06e2d6d6af42fe3c3087da673f80c824b05d91622fe98b5173540ed66d09ba3

Contents?: true

Size: 549 Bytes

Versions: 10

Compression:

Stored size: 549 Bytes

Contents

document.observe('dom:loaded', function() {
  var log = function(text) {
    var p = new Element('p').update(text);
    $('console').insert(p);
  };

  ['Added', 'Removed'].forEach(function(action) {
    document.observe('nested:field' + action, function(e) {
      log(action + ' some field')
    });

    document.observe('nested:field' + action + ':tasks', function(e) {
      log(action + ' task field')
    });

    document.observe('nested:field' + action + ':milestones', function(e) {
      log(action + ' milestone field')
    });
  });
});

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/nested_form-0.3.2/spec/dummy/app/assets/javascripts/prototype_events_test.js
freeform-1.0.4 spec/dummy/app/assets/javascripts/prototype_events_test.js
freeform-1.0.3 spec/dummy/app/assets/javascripts/prototype_events_test.js
freeform-1.0.2 spec/dummy/app/assets/javascripts/prototype_events_test.js
freeform-1.0.1 spec/dummy/app/assets/javascripts/prototype_events_test.js
freeform-1.0.0 spec/dummy/app/assets/javascripts/prototype_events_test.js
nested_form-0.3.2 spec/dummy/app/assets/javascripts/prototype_events_test.js
nested_form-0.3.1 spec/dummy/app/assets/javascripts/prototype_events_test.js
nested_form-0.3.0 spec/dummy/app/assets/javascripts/prototype_events_test.js
nested_form-0.2.3 spec/dummy/app/assets/javascripts/prototype_events_test.js