Closed Bug 304352 Opened 19 years ago Closed 19 years ago

Percent complete isn't checkmarked in the task-list context menu

Categories

(Calendar :: Sunbird Only, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jminta, Assigned: jminta)

Details

(Keywords: polish)

Attachments

(1 file)

In Sunbird 0.2, the task-list context menu displayed a checkmark next to the
appropriate percent-complete label.  This doesn't happen anymore.
Attached patch use percentComplete — — Splinter Review
This section of the code hadn't been updated to use .percentComplete
Assignee: mostafah → jminta
Status: NEW → ASSIGNED
Attachment #192408 - Flags: first-review?(mvl)
Comment on attachment 192408 [details] [diff] [review]
use percentComplete

> 
>-      if( document.getElementById( "percent-"+toDoItem.percent+"-menuitem" ) )
>+      if( document.getElementById( "percent-"+toDoItem.percentComplete+"-menuitem" ) )
>       {
>-         document.getElementById( "percent-"+toDoItem.percent+"-menuitem" ).setAttribute( "checked", "true" );
>+         document.getElementById( "percent-"+toDoItem.percentComplete+
>+                       "-menuitem" ).setAttribute( "checked", "true" );

Nit: move the string generation on one line, like:
	 document.getElementById("percent-" + toDoItem.percentComplete +
"-menuitem").
		  setAttribute("checked", "true");
(also has some whitespace changes)

r=mvl with that.
Attachment #192408 - Flags: first-review?(mvl) → first-review+
Patch checked in.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: