This project is archived and is in readonly mode.
submit_tag :disable_with -> Problem with AJAX-Buttons in FireFox
-
Martin
Because we didn't want to change the rails source code for our project, we used this jQuery function as replacement for the
:disable_withtechnique.
You can't set the disabling text, but the rest is working fine...$('input[type=submit]').live('click', function() { $(this).siblings('#hiddenCommit').remove(); $(this).parent('form').append('<input type="hidden" name="'+ this.name+ '" value="'+ this.value +'" id="hiddenCommit" />'); $(this).attr('disabled', 'disabled'); var onsubmit = this.form.onsubmit ? this.form.onsubmit() : true; if (! onsubmit) { $(this).siblings('#hiddenCommit').remove(); $(this).attr('disabled', ''); } else { this.form.submit(); } }); -
Santiago Pastorino
- State changed from new to stale
- Importance changed from to Low
This should be fixed now if not please let me know and I will reopen
