Closed
Bug 349322
Opened 18 years ago
Closed 18 years ago
calMonthGridPrinter.js outputs invalid and ugly css
Categories
(Calendar :: Printing, defect)
Calendar
Printing
Tracking
(Not tracked)
RESOLVED
FIXED
Sunbird 0.3
People
(Reporter: mattwillis, Assigned: mattwillis)
Details
(Keywords: polish)
Attachments
(1 file, 1 obsolete file)
4.87 KB,
patch
|
cmtalbert
:
first-review+
jminta
:
second-review+
|
Details | Diff | Splinter Review |
The HTML that calMonthGridPrinter creates has ugly, in some cases invalid, and difficult to read CSS.
Assignee | ||
Comment 2•18 years ago
|
||
This patch: - normalizes all css to use lowercase - adds spaces to make things more readable - replaces "background" with "background-color" when only a colour is defined - doesn't attempt to include a border on events if the event has no category, or the category has no color assigned
Attachment #234596 -
Flags: second-review?(jminta)
Attachment #234596 -
Flags: first-review?
Assignee | ||
Updated•18 years ago
|
Attachment #234596 -
Flags: first-review? → first-review?(bugzilla)
Comment 3•18 years ago
|
||
Comment on attachment 234596 [details] [diff] [review] rev0 - cleans up CSS - var catColor; + var catColor = ""; try { catColor = pb2.getCharPref("calendar.category.color."+item.getProperty("CATEGORIES").toLowerCase()); } catch(ex) {} - var style = 'font-size:11px; background-color:' + calColor + - '; border: solid ' + catColor + ' 2px;'; + var style = 'font-size: 11px; background-color: ' + calColor + ';'; + if (catColor != "") { + style += ' border: solid ' + catColor + ' 2px;'; + } This looks like there's more than just style cleanup here. Why are switching from null to an empty string here?
Assignee | ||
Comment 4•18 years ago
|
||
Fixes jminta's nit per IRC chat
Attachment #234596 -
Attachment is obsolete: true
Attachment #234810 -
Flags: second-review?(jminta)
Attachment #234810 -
Flags: first-review?
Attachment #234596 -
Flags: second-review?(jminta)
Attachment #234596 -
Flags: first-review?(bugzilla)
Assignee | ||
Updated•18 years ago
|
Attachment #234810 -
Flags: first-review? → first-review?(bugzilla)
Comment 5•18 years ago
|
||
Comment on attachment 234810 [details] [diff] [review] rev1 - no more empty string r2=jminta
Attachment #234810 -
Flags: second-review?(jminta) → second-review+
Comment 6•18 years ago
|
||
I will only be able to review this on Monday at the earliest. If that is fine with you then leave the request as it is, if you don't want to wait so long, please move it to another reviewer.
Assignee | ||
Updated•18 years ago
|
Attachment #234810 -
Flags: first-review?(bugzilla) → first-review?(cmtalbert)
Attachment #234810 -
Flags: first-review?(cmtalbert) → first-review+
Assignee | ||
Comment 7•18 years ago
|
||
Patch checked in on MOZILLA_1_8_BRANCH and trunk. -> FIXED
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•