Bug 1086729
| Summary: | builds page is unusable without allowing 3rd party javascript | ||
|---|---|---|---|
| Product: | [Community] Copr | Reporter: | Petr Lautrbach <plautrba> |
| Component: | frontend | Assignee: | Miroslav Suchý <msuchy> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | unspecified | CC: | msuchy |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | copr-frontend-1.34-1 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-04-30 07:11:13 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1078371 | ||
| Bug Blocks: | |||
|
Description
Petr Lautrbach
2014-04-11 11:48:45 UTC
I do not plan getting rid of JavaScript. Maybe opposite - add more (welcome to 21th century :). I will not refer to 3rd party file once bug 1078371 is resolved and jquery is packaged for Fedora. Why don't you just remove "display: none;" for the details class and hide it using javascript? All the data are already downloaded by browser anyway. Patches are welcome. I'm not really familiar with javascript but something like this could work:
copr.css:
table.builds-table tr.details {
width: 100%;
}
copr.js:
//hide build details
$(document).ready(function () {
$("table.builds-table tr.details").hide();
});
// showing build details
$(document).ready(function () {
$("table.builds-table tr[class^='build-']").each(function (i, e) {
$(this).click(function() { $("table.builds-table tr.details").hide(); $(this).next().show(); });
});
});
ping. Are there any objections to the proposed solution? It works. Thanks. Commited as 00d5f77. Code deployed to copr.fedoraproject.org |