Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
jz
CCCROC
Commits
f22c34b6
Commit
f22c34b6
authored
Dec 26, 2014
by
Oliver Feldt
Browse files
Fixed history not displaying properly on scan
parent
d9146c14
Changes
1
Hide whitespace changes
Inline
Side-by-side
data/ccc_roc/assets/javascripts/application.js
View file @
f22c34b6
...
...
@@ -86,6 +86,25 @@ $("#search_form").on("submit", function(e) {
$
(
"
#radio .modal-header
"
).
removeClass
(
angel
===
null
?
"
info
"
:
"
success
"
);
$
(
"
#radio_header
"
).
html
(
radio
.
name
);
$
(
"
#radio
"
).
modal
(
"
show
"
);
$
(
"
#checkouts tbody
"
).
empty
();
$
.
getJSON
(
"
/checkouts
"
,
{
radio_id
:
radio
.
name
},
function
(
response
)
{
var
checkouts
=
response
;
var
source
=
$
(
"
#checkout-template
"
).
html
();
var
template
=
Handlebars
.
compile
(
source
);
$
(
"
#checkouts tbody
"
).
empty
();
for
(
var
index
=
0
;
index
<
checkouts
.
length
;
index
++
)
{
var
context
=
{
angel
:
checkouts
[
index
].
angel
,
checkout
:
checkouts
[
index
]
};
$
(
"
#checkouts tbody
"
).
append
(
template
(
context
));
}
}
);
}
}
).
always
(
function
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment