Sha256: a81e63880aa6167d99e54873461eef2b5b4640ff8b33c77975f41425e0c1d76e

Contents?: true

Size: 410 Bytes

Versions: 9

Compression:

Stored size: 410 Bytes

Contents

<% if Rails.env.test? %>
var LunchPicker = {
  run: function(target) {
    $(target).change(function(e) {
      $(target).siblings('.lunch-comment').text('Good choice');
    });
  }
}

// jQuery plugin
$.fn.lunchPicker = function(options) {
  return this.each(function() {
    LunchPicker.run(this);
  });
}
<% else %>
// This file is overrideable by the host app, allowing javascript customisation.
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
slices-2.0.2 app/assets/javascripts/admin.js.erb
slices-2.0.1 app/assets/javascripts/admin.js.erb
slices-2.0.0 app/assets/javascripts/admin.js.erb
slices-1.0.5 app/assets/javascripts/admin.js.erb
slices-1.0.4 app/assets/javascripts/admin.js.erb
slices-1.0.3 app/assets/javascripts/admin.js.erb
slices-1.0.2 app/assets/javascripts/admin.js.erb
slices-1.0.1 app/assets/javascripts/admin.js.erb
slices-1.0.0 app/assets/javascripts/admin.js.erb