Closed Bug 640987 Opened 13 years ago Closed 13 years ago

YUI is only used for the first tabular report when using multiple tables

Categories

(Bugzilla :: Reporting/Charting, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 4.2

People

(Reporter: jonathan, Assigned: guy.pyrzak)

References

()

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.15) Gecko/20110303 Firefox/3.6.15
Build Identifier: 

While reporting bug 640985 I noticed that the first result table on landfill is beautified after loading, but subsequent tables are not. Is this intentionally or could this be a regression?

I am observing this using FF 3.6.15

Reproducible: Always

Steps to Reproduce:
Open the report as linked in the URL field and wait a little.
Actual Results:  
First table looks are changed after the page load, subsequent tables are not.

Expected Results:  
All tables should have the newer, nicer look.
Confirmed.
Assignee: ui → charting
Status: UNCONFIRMED → NEW
Component: User Interface → Reporting/Charting
Ever confirmed: true
OS: Windows XP → All
Hardware: x86 → All
Summary: Table looks are not beautified for all tables in report.cgi → YUI is only used for the first tabular report when using multiple tables
Target Milestone: --- → Bugzilla 4.2
Version: unspecified → 4.1
Flags: blocking4.2+
Assignee: charting → guy.pyrzak
Attached patch v1Splinter Review
i don't like how this JS is included in the template when it doesn't need to be, but this will fix the bug without moving stuff around.
Attachment #539411 - Flags: review?(mkanat)
Comment on attachment 539411 [details] [diff] [review]
v1

Review of attachment 539411 [details] [diff] [review]:
-----------------------------------------------------------------

Looks fine, just one nit:

::: template/en/default/reports/report-table.html.tmpl
@@ +125,4 @@
>        {key:"total", parser:this.parseNumber}
>      ]
>    };
> +  this.myDataTable = new YAHOO.widget.DataTable("tabular_report_container_[% tbl FILTER js %]", myColumnDefs, this.myDataSource, {formatRow: totalRowFormatter});

This line is longer than 80 characters.
Attachment #539411 - Flags: review?(mkanat) → review+
Flags: approval+
Committing to: bzr+ssh://guy.pyrzak%40gmail.com@bzr.mozilla.org/bugzilla/trunk/
modified template/en/default/reports/report-table.html.tmpl
Committed revision 7841.

I wasn't sure there was a 4.2 branch but as far as i can tell there isn't., i split the nitted line into 3 lines
Status: NEW → RESOLVED
Closed: 13 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: