Modify

Opened 12 years ago

Closed 12 years ago

#10694 closed enhancement (fixed)

Disable the Apply changes button until changes have been made

Reported by: Ryan J Ollos Owned by: Ryan J Ollos
Priority: normal Component: AdminEnumListPlugin
Severity: normal Keywords:
Cc: Stepan Riha, Jun Omae Trac Release:

Description (last modified by Ryan J Ollos)

Disable the Apply changes button until one of the following events has occurred:

  • One of the default radio buttons has been selected.
  • The list has unsaved changes.

Attachments (0)

Change History (4)

comment:1 Changed 12 years ago by Ryan J Ollos

Description: modified (diff)
Status: newassigned
Summary: Disable the Save changes button until changes have been madeDisable the Apply changes button until changes have been made

comment:2 Changed 12 years ago by Ryan J Ollos

(In [12437]) Refs #10694: Apply changes button is disabled until a change has been made.

comment:3 Changed 12 years ago by Ryan J Ollos

In [12437] I have 3 instances of $('#enumtable div input[name="apply"]'). Do you think it is worth extract this into a variable? I don't see any performance issues here, but I've read recommendations that repeated execution of a selector should be avoided when possibly for performance reasons. I'm primarily concerned that this could reduce code clarity. I could equally see it as improving code clarity though.

Another recommendation I've read, but have yet to see in any jquery code, is that variables that contain selectors should be named starting with $. For example, $apply = $('#enumtable div input[name="apply"]'). Is that variable naming pattern commonly used?

comment:4 Changed 12 years ago by Ryan J Ollos

Resolution: fixed
Status: assignedclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.