Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tvgids
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
tvgids
Commits
78ee741c
Commit
78ee741c
authored
Dec 30, 2013
by
Taddeus Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed generated file from repo index (really now)
parent
b89c305e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
56 deletions
+0
-56
settings.js
settings.js
+0
-56
No files found.
settings.js
deleted
100644 → 0
View file @
b89c305e
// Generated by CoffeeScript 1.3.3
(
function
()
{
var
STORAGE_NAME
,
setall
,
visible
;
STORAGE_NAME
=
'
tvgids-channels
'
;
visible
=
localStorage
.
hasOwnProperty
(
STORAGE_NAME
)
?
localStorage
.
getItem
(
STORAGE_NAME
).
split
(
'
;
'
)
:
_
.
pluck
(
CHANNELS
,
'
id
'
);
_
.
each
(
CHANNELS
,
function
(
channel
)
{
var
elem
,
input
,
is_visible
;
is_visible
=
_
.
contains
(
visible
,
channel
.
id
);
input
=
$
(
'
<input type="checkbox" name="channels[]" value="
'
+
channel
.
id
+
'
">
'
);
input
.
attr
(
'
checked
'
,
is_visible
);
input
.
change
(
function
()
{
return
$
(
this
).
parent
().
toggleClass
(
'
disabled
'
,
!
$
(
this
).
is
(
'
:checked
'
));
});
input
.
change
(
function
()
{
return
$
(
'
#select-channels
'
).
submit
();
});
elem
=
$
(
'
<label/>
'
).
html
(
channel
.
name
);
elem
.
prepend
(
input
);
elem
.
toggleClass
(
'
disabled
'
,
!
is_visible
);
return
elem
.
appendTo
(
'
#select-channels .options
'
);
});
$
(
'
#select-channels
'
).
submit
(
function
(
e
)
{
var
i
,
selected
;
e
.
preventDefault
();
selected
=
(
function
()
{
var
_i
,
_len
,
_ref
,
_results
;
_ref
=
$
(
'
input
'
,
this
);
_results
=
[];
for
(
_i
=
0
,
_len
=
_ref
.
length
;
_i
<
_len
;
_i
++
)
{
i
=
_ref
[
_i
];
if
(
$
(
i
).
is
(
'
:checked
'
))
{
_results
.
push
(
$
(
i
).
val
());
}
}
return
_results
;
}).
call
(
this
);
return
localStorage
.
setItem
(
STORAGE_NAME
,
selected
.
join
(
'
;
'
));
});
setall
=
function
(
c
)
{
return
$
(
'
#select-channels input
'
).
prop
(
'
checked
'
,
c
).
change
();
};
$
(
'
#select-all
'
).
click
(
function
()
{
return
setall
(
true
);
});
$
(
'
#select-none
'
).
click
(
function
()
{
return
setall
(
false
);
});
}).
call
(
this
);
Write
Preview
Markdown
is supported
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