Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
836e3c28
Commit
836e3c28
authored
Oct 13, 2017
by
aurelien beliard
Committed by
Mathieu Giraud
Nov 28, 2017
Browse files
create a button by normalization
parent
15e7e1c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
browser/js/builder.js
View file @
836e3c28
...
...
@@ -150,13 +150,14 @@ Builder.prototype = {
input
.
id
=
"
reset_norm
"
;
var
div
=
document
.
createElement
(
"
div
"
);
div
.
appendChild
(
input
);
div
.
appendChild
(
document
.
createTextNode
(
"
none
"
))
div
.
onclick
=
function
()
{
self
.
m
.
compute_normalization
(
-
1
)
;
this
.
firstChild
.
checked
=
fals
e
;
this
.
firstChild
.
checked
=
tru
e
;
self
.
m
.
update
();
};
div
.
appendChild
(
input
);
normalize_list
.
appendChild
(
div
);
tmp_norm_list
=
[]
if
(
m
.
normalization_list
.
length
>=
1
){
...
...
@@ -167,7 +168,6 @@ Builder.prototype = {
if
(
tmp_norm_list
[
div
]
==
m
.
normalization_list
[
norm
].
id
){
check
=
true
}
}
if
(
check
==
false
)
{
var
id
=
m
.
normalization_list
[
norm
].
id
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment