Bug Tracker

Modify

Ticket #3494 (closed feature: invalid)

Opened 5 years ago

Last modified 4 years ago

[form] disableWith option for disabling submit button with a text during form submission

Reported by: esad Owned by: malsup
Priority: major Milestone: 1.3
Component: plugin Version: 1.2.6
Keywords: form Cc:
Blocking: Blocked by:

Description

Hi!

In rails, there is a :disable_with option for submit_tag helper which will disable the submit button on click and change it's caption to value supplied.

Once the form submission is complete, it will restore the old text and enable the button.

In the patch attached, I've (somewhat naively) implemented this option for the form plugin. Could someone maybe take a look and if it makes sense, integrate this into the plugin?

Attachments

disable_with.diff Download (840 bytes) - added by esad 5 years ago.
Implementation of disableWith option

Change History

Changed 5 years ago by esad

Implementation of disableWith option

comment:1 Changed 5 years ago by flesler

  • Keywords form added
  • Owner set to malsup

comment:2 Changed 4 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

This is not a jQuery core bug. Please report plugin bugs to the plugin's author, or ask on the jQuery forums. jQuery UI bugs should be reported on the UI bug tracker,  http://dev.jqueryui.com .

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.