Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scheduling-system
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SMASCH
scheduling-system
Commits
ea962911
Commit
ea962911
authored
4 years ago
by
Carlos Vega
Browse files
Options
Downloads
Patches
Plain Diff
new type of select for none, true, false, inconclusive
parent
17adf6a7
No related branches found
No related tags found
1 merge request
!250
Virus visit column changes
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
smash/web/static/js/smash.js
+14
-2
14 additions, 2 deletions
smash/web/static/js/smash.js
with
14 additions
and
2 deletions
smash/web/static/js/smash.js
+
14
−
2
View file @
ea962911
...
...
@@ -301,11 +301,23 @@ function createTable(params) {
$
(
this
).
html
(
'
<select style="width:60px" ><option value selected="selected">---</option><option value="true">YES</option><option value="false">NO</option></select>
'
);
});
$
(
tableElement
).
find
(
'
tfoot div[name="yes_no_null_filter"]
'
).
each
(
function
()
{
$
(
this
).
html
(
'
<select style="width:1
2
0px" ><option value selected="selected">---</option><option value="true">YES</option><option value="false">NO</option><option value="null">N/A</option></select>
'
);
$
(
this
).
html
(
'
<select style="width:1
0
0px" ><option value selected="selected">---</option><option value="true">YES</option><option value="false">NO</option><option value="null">N/A</option></select>
'
);
});
$
(
tableElement
).
find
(
'
tfoot div[name="yes_no_null_inconclusive_filter"]
'
).
each
(
function
()
{
$
(
this
).
html
(
'
<select style="width:1
2
0px" ><option value selected="selected">---</option><option value="true">YES</option><option value="false">NO</option><option value="null">N/A</option><option value="inconclusive">Inconclusive</option></select>
'
);
$
(
this
).
html
(
'
<select style="width:1
0
0px" ><option value selected="selected">---</option><option value="true">YES</option><option value="false">NO</option><option value="null">N/A</option><option value="inconclusive">Inconclusive</option></select>
'
);
});
$
(
tableElement
).
find
(
'
tfoot div[name="virus_test_date"]
'
).
each
(
function
()
{
$
(
this
).
css
(
'
width
'
,
'
100px
'
);
$
(
this
).
text
(
''
);
});
$
(
tableElement
).
find
(
'
th:contains("RT-PCR")
'
).
each
(
function
(){
non_breaking_hyphen
=
$
.
parseHTML
(
'
‑
'
);
var
text
=
$
(
this
).
text
().
replace
(
'
-
'
,
$
(
non_breaking_hyphen
).
text
());
$
(
this
).
text
(
text
);
});
$
(
tableElement
).
find
(
'
tfoot div[name="integer_filter"]
'
).
each
(
function
()
{
var
options
=
'
<option value selected="selected">---</option>
'
;
for
(
var
i
=
1
;
i
<=
8
;
i
++
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment