Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
nerrons
purr-data
Commits
c3bc6934
Commit
c3bc6934
authored
Feb 25, 2016
by
Jonathan Wilkes
Browse files
fix problems discovered with jslint
parent
59dd8049
Changes
4
Show whitespace changes
Inline
Side-by-side
pd/nw/dialog_gatom.html
View file @
c3bc6934
pd/nw/dialog_iemgui.html
View file @
c3bc6934
...
...
@@ -346,9 +346,10 @@ function substitute_space(arg) {
}
function
strip_problem_chars
(
arg
)
{
var
problem_chars
=
[
"
;
"
,
"
,
"
,
"
{
"
,
"
}
"
,
"
\\
"
];
var
ret
=
arg
;
for
(
var
i
=
0
;
i
<
problem_chars
.
length
;
i
++
)
{
var
problem_chars
=
[
"
;
"
,
"
,
"
,
"
{
"
,
"
}
"
,
"
\\
"
],
ret
=
arg
,
i
;
for
(
i
=
0
;
i
<
problem_chars
.
length
;
i
++
)
{
ret
=
ret
.
split
(
"
;
"
).
join
(
""
);
}
return
ret
;
...
...
pd/nw/dialog_prefs.html
View file @
c3bc6934
...
...
@@ -507,7 +507,7 @@ function audio_prefs_callback(attrs) {
document
.
getElementById
(
"
blocksize
"
).
value
=
get_attr
(
"
blocksize
"
,
attrs
);
document
.
getElementById
(
"
advance
"
).
value
=
get_attr
(
"
advance
"
,
attrs
);
var
callback
=
get_attr
(
"
cancallback
"
,
attrs
);
callback
=
get_attr
(
"
cancallback
"
,
attrs
);
//show the checkbox if the API allows
if
(
callback
!==
-
1
)
{
document
.
getElementById
(
"
callback_container
"
)
...
...
@@ -594,10 +594,11 @@ function tr_text(id) {
// Stop-gap translator
function
translate_form
()
{
var
i
;
var
elements
=
document
.
querySelectorAll
(
"
[data-i18n]
"
);
var
elements
=
document
.
querySelectorAll
(
"
[data-i18n]
"
),
data
,
i
;
for
(
i
=
0
;
i
<
elements
.
length
;
i
++
)
{
var
data
=
elements
[
i
].
dataset
.
i18n
;
data
=
elements
[
i
].
dataset
.
i18n
;
if
(
data
.
slice
(
0
,
7
)
===
"
[title]
"
)
{
elements
[
i
].
title
=
l
(
data
.
slice
(
7
));
}
else
{
...
...
@@ -608,8 +609,8 @@ function translate_form() {
function
populate_form
(
attr_array
)
{
// First, let's put the translated text for the form labels:
for
(
var
i
=
0
;
i
<
attr_array
.
length
;
i
+=
2
)
{
var
i
;
for
(
i
=
0
;
i
<
attr_array
.
length
;
i
+=
2
)
{
// Unhide the span with the class with the same name as the id
var
prop_group
=
document
.
getElementsByClassName
(
attr_array
[
i
])[
0
];
if
(
prop_group
!==
undefined
)
{
...
...
pd/nw/dialog_search.html
View file @
c3bc6934
...
...
@@ -28,10 +28,11 @@ var doc_id = 0;
// Stop-gap translator
function
translate_form
()
{
var
i
;
var
elements
=
document
.
querySelectorAll
(
"
[data-i18n]
"
);
var
elements
=
document
.
querySelectorAll
(
"
[data-i18n]
"
),
data
,
i
;
for
(
i
=
0
;
i
<
elements
.
length
;
i
++
)
{
var
data
=
elements
[
i
].
dataset
.
i18n
;
data
=
elements
[
i
].
dataset
.
i18n
;
if
(
data
.
slice
(
0
,
7
)
===
"
[title]
"
)
{
elements
[
i
].
title
=
l
(
data
.
slice
(
7
));
}
else
{
...
...
@@ -67,7 +68,6 @@ function add_doc_to_index(filename, data) {
//"body": big_line,
"
path
"
:
filename
});
}
function
read_file
(
err
,
filename
,
stat
)
{
...
...
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