Opened 9 years ago

Closed 8 years ago

#5280 closed enhancement (fixed)

Allow change of ticket template if no data has been entered

Reported by: anonymous Owned by: Takanori Suzuki
Priority: normal Component: TicketExtPlugin
Severity: normal Keywords: confirmation dialog
Cc: Trac Release: 0.11


When changing templates for TicketExtPlugin, a confirmation dialog pops up whenever the ticket type is changed. This is always done prior to warn the user of an impending update to the textarea template itself.

It is useful for the user to skip this dialog if nothing in the textarea has changed itself. This enhancement is only for immediate changes to the textarea, not to the restriction of fields, or modification of other changes made to the new ticket.


  • By using an arbitrary CSS class name (in this case, changed), we can identify when the ticket has changed from the template.
  • As noted, future enhancements can include checking ALL available fields in Javascript, but for now, this should be an acceptable enhancement

The following diff on file ticketext/htdocs/ticketext.js details the changes as of revision 5855:

<     var descElem = document.getElementById(this.descId);
<     $(descElem).change(function() { $(descElem).addClass("changed"); });
<         if ($("textarea.changed").length > 0) {
<         }
<     $(descElem).removeClass("changed");
< //          ;
>           ;

Attachments (0)

Change History (2)

comment:1 Changed 8 years ago by Takanori Suzuki

(In [7738]) (refs #5280)内容を変更していない場合は、確認ダイアログは表示されないようにした。TracWysiwygPluginを利用している場合にも対応。

comment:2 Changed 8 years ago by Takanori Suzuki

Resolution: fixed
Status: newclosed

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Takanori Suzuki.
The resolution will be deleted.

Add Comment

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

Note: See TracTickets for help on using tickets.