Modify ↓
Opened 18 years ago
Closed 18 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)
Note: See
TracTickets for help on using
tickets.
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