Modify

Opened 11 years ago

Closed 11 years ago

#891 closed enhancement (fixed)

Making 'total hours' field non-editable

Reported by: anonymous Owned by: Russ Tyndall
Priority: normal Component: TimingAndEstimationPlugin
Severity: minor Keywords:
Cc: Trac Release: 0.10

Description

I'm not at all a trac hacker yet - so I'm not sure if the module install script can modify a template, but the solution to the editable 'total hours' field can be solved by adding a wee bit of javascript into the ticket template

var totalhours = getElementById("totalhours"); totalhours.setAttribute("readonly", "readonly");

Hackish solution - but until the .ini file [ticket-custom] could provide additional element attributes besides 'value' - this hack will have to do.

Attachments (0)

Change History (1)

comment:1 Changed 11 years ago by Russ Tyndall

Resolution: fixed
Status: newclosed

I actually got this implemented on Friday. I had the same thought with the javascript.

If installed from svn head, this should be here.

see changeset:1516

Thanks, Russ

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Russ Tyndall.
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.