Private GIT
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SickRage-1
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vlbox
SickRage-1
Commits
d40df1d3
Commit
d40df1d3
authored
Nov 21, 2015
by
X O
Browse files
Options
Downloads
Patches
Plain Diff
fix more linting issues
parent
1c537b63
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.jshintrc
+2
-1
2 additions, 1 deletion
.jshintrc
gui/slick/js/newShow.js
+16
-16
16 additions, 16 deletions
gui/slick/js/newShow.js
with
18 additions
and
17 deletions
.jshintrc
+
2
−
1
View file @
d40df1d3
...
...
@@ -11,13 +11,14 @@
"jquery": true,
"latedef": true,
"maxerr": 100,
"maxlen": 1000,
"noarg": true,
"noempty": true,
"nonbsp": true,
"undef": true,
"unused": true,
"node": true,
"
globals
": {
"
predef
": {
"srRoot": true,
"themeSpinner": true,
"metaToBool": true,
...
...
This diff is collapsed.
Click to expand it.
gui/slick/js/newShow.js
+
16
−
16
View file @
d40df1d3
...
...
@@ -37,8 +37,8 @@ $(document).ready(function () {
var
whichSeries
=
obj
.
join
(
'
|
'
);
resultStr
+=
'
<input type="radio" id="whichSeries" name="whichSeries" value="
'
+
whichSeries
.
replace
(
/"/g
,
""
)
+
'
"
'
+
checked
+
'
/>
'
;
if
(
data
.
langid
&&
data
.
langid
!==
""
)
{
resultStr
+=
'
<input type="radio" id="whichSeries" name="whichSeries" value="
'
+
whichSeries
.
replace
(
/"/g
,
''
)
+
'
"
'
+
checked
+
'
/>
'
;
if
(
data
.
langid
&&
data
.
langid
!==
''
)
{
resultStr
+=
'
<a href="
'
+
anonURL
+
obj
[
2
]
+
obj
[
3
]
+
'
&lid=
'
+
data
.
langid
+
'
" onclick=
\
"window.open(this.href,
\'
_blank
\'
); return false;
\
" ><b>
'
+
obj
[
4
]
+
'
</b></a>
'
;
}
else
{
resultStr
+=
'
<a href="
'
+
anonURL
+
obj
[
2
]
+
obj
[
3
]
+
'
" onclick=
\
"window.open(this.href,
\'
_blank
\'
); return false;
\
" ><b>
'
+
obj
[
4
]
+
'
</b></a>
'
;
...
...
@@ -78,7 +78,7 @@ $(document).ready(function () {
$
(
'
#addShowButton
'
).
click
(
function
()
{
// if they haven't picked a show don't let them submit
if
(
!
$
(
"
input:radio[name=
'
whichSeries
'
]:checked
"
).
val
()
&&
!
$
(
"
input:hidden[name=
'
whichSeries
']
"
).
val
().
length
)
{
if
(
!
$
(
'
input:radio[name=
"
whichSeries
"
]:checked
'
).
val
()
&&
!
$
(
'
input:hidden[name=
"
whichSeries
"]
'
).
val
().
length
)
{
alert
(
'
You must choose a show to continue
'
);
return
false
;
}
...
...
@@ -114,7 +114,7 @@ $(document).ready(function () {
function
goToStep
(
num
)
{
$
(
'
.step
'
).
each
(
function
()
{
if
(
$
.
data
(
this
,
'
section
'
)
+
1
==
num
)
{
if
(
$
.
data
(
this
,
'
section
'
)
+
1
==
=
num
)
{
$
(
this
).
click
();
}
});
...
...
@@ -125,7 +125,7 @@ $(document).ready(function () {
function
updateSampleText
()
{
// if something's selected then we have some behavior to figure out
var
showName
,
sep
_c
har
;
var
showName
,
sep
C
har
;
// if they've picked a radio button then use that
if
(
$
(
'
input:radio[name=whichSeries]:checked
'
).
length
)
{
showName
=
$
(
'
input:radio[name=whichSeries]:checked
'
).
val
().
split
(
'
|
'
)[
4
];
...
...
@@ -138,22 +138,22 @@ $(document).ready(function () {
var
sampleText
=
'
Adding show <b>
'
+
showName
+
'
</b> into <b>
'
;
// if we have a root dir selected, figure out the path
if
(
$
(
"
#rootDirs option:selected
"
).
length
)
{
var
root
_dir_t
ext
=
$
(
'
#rootDirs option:selected
'
).
val
();
if
(
root
_dir_t
ext
.
indexOf
(
'
/
'
)
>=
0
)
{
sep
_c
har
=
'
/
'
;
}
else
if
(
root
_dir_t
ext
.
indexOf
(
'
\\
'
)
>=
0
)
{
sep
_c
har
=
'
\\
'
;
if
(
$
(
'
#rootDirs option:selected
'
).
length
)
{
var
root
DirectoryT
ext
=
$
(
'
#rootDirs option:selected
'
).
val
();
if
(
root
DirectoryT
ext
.
indexOf
(
'
/
'
)
>=
0
)
{
sep
C
har
=
'
/
'
;
}
else
if
(
root
DirectoryT
ext
.
indexOf
(
'
\\
'
)
>=
0
)
{
sep
C
har
=
'
\\
'
;
}
else
{
sep
_c
har
=
''
;
sep
C
har
=
''
;
}
if
(
root
_dir_t
ext
.
substr
(
sampleText
.
length
-
1
)
!=
sep
_c
har
)
{
root
_dir_t
ext
+=
sep
_c
har
;
if
(
root
DirectoryT
ext
.
substr
(
sampleText
.
length
-
1
)
!=
=
sep
C
har
)
{
root
DirectoryT
ext
+=
sep
C
har
;
}
root
_dir_t
ext
+=
'
<i>||</i>
'
+
sep
_c
har
;
root
DirectoryT
ext
+=
'
<i>||</i>
'
+
sep
C
har
;
sampleText
+=
root
_dir_t
ext
;
sampleText
+=
root
DirectoryT
ext
;
}
else
if
(
$
(
'
#fullShowPath
'
).
length
&&
$
(
'
#fullShowPath
'
).
val
().
length
)
{
sampleText
+=
$
(
'
#fullShowPath
'
).
val
();
}
else
{
...
...
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