-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hides capacity column and filter Refs #10
- Loading branch information
Christopher Green
committed
Jun 21, 2017
1 parent
0551f90
commit 9fe8e8b
Showing
4 changed files
with
19 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
// Hides the 'Capacity column' | ||
export function hideCapacity () { | ||
|
||
// Hide the 'Capacity column' | ||
document.querySelectorAll('.fc-resource-area.fc-widget-header .fc-content .fc-widget-header')[1].remove() | ||
|
||
document.querySelectorAll('.fc-resource-area.fc-widget-header .fc-content colgroup col')[1].remove() | ||
|
||
let rows = document.querySelectorAll('.fc-resource-area.fc-widget-content .fc-content tr') | ||
|
||
for (let i = 0; i < rows.length; i++) { | ||
rows[i].children[1].remove() | ||
if (rows[i].children.length > 1) { | ||
rows[i].children[1].remove() | ||
} | ||
} | ||
|
||
document.querySelectorAll('.fc-resource-area.fc-widget-content .fc-content colgroup col')[1].remove() | ||
|
||
// Hide the 'Capacity' filter | ||
document.querySelectorAll('#s-lc-eq-navform .form-inline .form-group')[2].remove() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.