Bug Tracker

Opened 11 years ago

Closed 10 years ago

#3494 closed feature (invalid)

[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:
Blocked by: Blocking:

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 (1)

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

Download all attachments as: .zip

Change History (3)

Changed 11 years ago by esad

Attachment: disable_with.diff added

Implementation of disableWith option

comment:1 Changed 11 years ago by flesler

Keywords: form added
Owner: set to malsup

comment:2 Changed 10 years ago by dmethvin

Resolution: invalid
Status: newclosed

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 .

Note: See TracTickets for help on using tickets.