Modify

Opened 8 years ago

Closed 8 years ago

#891 closed enhancement (fixed)

Making 'total hours' field non-editable

Reported by: anonymous Owned by: bobbysmith007
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 8 years ago by bobbysmith007

  • Resolution set to fixed
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Action
as closed The owner will remain bobbysmith007.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.