Sha256: 0752b3de6d058bfffce891b5a988a041aedc202f1110b563c8537fc1ba62f07c

Contents?: true

Size: 539 Bytes

Versions: 6

Compression:

Stored size: 539 Bytes

Contents

// Reset the state of the submit button
$(document).ready(function() {
  $('.form_element.submit.change_to_text').show();
  $('.submit_text').hide();
});

// Shows the submit button replacement text on click
$('.form_element.submit.change_to_text input[type=submit]').live('click', function(){
  $(this).parent().next().show();
  $(this).parent().hide();
})

// Activates the submit button click when clicking the image button
$('.form_element.submit a.submit_image').live('click', function(){
  $(this).prev().click();
  return false;
})

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
bootstrap_builder-0.1.2 app/assets/javascripts/formatted_form.js
bootstrap_builder-0.1.1 app/assets/javascripts/formatted_form.js
bootstrap_builder-0.1.0 app/assets/javascripts/formatted_form.js
bootstrap_builder-0.0.0 app/assets/javascripts/formatted_form.js
formatted_form-1.1.0 templates/javascripts/formatted_form.js
formatted_form-1.0.2 templates/javascripts/formatted_form.js