Modify ↓
Opened 12 years ago
Closed 12 years ago
#10690 closed enhancement (fixed)
Add a 'Revert changes' button
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
Add a Revert changes button to the right of the Apply changes button.
Attachments (0)
Change History (6)
comment:1 Changed 12 years ago by
comment:2 follow-up: 5 Changed 12 years ago by
Status: | new → assigned |
---|
The Revert changes button is enabled only when the list is changed. This got me thinking that this plugin could provide some other similar features:
- Disable Remove selected items on page load, and enable it when a checkbox is selected.
- Disable Apply changes until the list order is changed, or one of the Default radio buttons is selected.
comment:3 Changed 12 years ago by
I tried "Revert changes" feature. If reload after using "revert", the browser shows the confirmation.
It would be better to reload without confirmation.
-
adminenumlistplugin/htdocs/adminenumlist.js
46 46 $('#enumtable').submit(function(){ 47 47 if(button_pressed === 'apply' || button_pressed === 'revert') 48 48 $(window).unbind('beforeunload'); 49 if(button_pressed === 'revert') { 50 // Send GET request instead of POST 51 location = location; 52 return false; 53 } 49 54 }); 50 55 51 56 // This keep track of current vertical coordinates
comment:4 Changed 12 years ago by
comment:5 Changed 12 years ago by
Replying to rjollos:
The Revert changes button is enabled only when the list is changed. This got me thinking that this plugin could provide some other similar features:
- Disable Remove selected items on page load, and enable it when a checkbox is selected.
=> #10695.
- Disable Apply changes until the list order is changed, or one of the Default radio buttons is selected.
=> #10694.
comment:6 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
(In [12421]) Refs #10690: Added a Revert changes button.