Sha256: 742d6e83d481df699e05d9047a128a727a30b900b3b4880ef33bfbdbde10ced9

Contents?: true

Size: 246 Bytes

Versions: 4

Compression:

Stored size: 246 Bytes

Contents

// Leonardo
// Insert here your javascript

//Add this class to an input form to auto submit on change
$('.autosubmit').live('change', function() {
  setTimeout("$('#"+this.id+"').parents('form:first').submit();", 300);
  return false;
});

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
leonardo-1.8.4 lib/generators/leolay/templates/app/assets/javascripts/custom.js
leonardo-1.8.3 lib/generators/leolay/templates/app/assets/javascripts/custom.js
leonardo-1.8.2 lib/generators/leolay/templates/app/assets/javascripts/custom.js
leonardo-1.8.1 lib/generators/leolay/templates/app/assets/javascripts/custom.js