Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
dea6c7be
Commit
dea6c7be
authored
Mar 29, 2011
by
Christodoulos Psaltis
Browse files
On click, toggle selection menu in list view
parent
a054e54c
Changes
1
Hide whitespace changes
Inline
Side-by-side
ui/templates/list.html
View file @
dea6c7be
...
...
@@ -60,18 +60,21 @@ $("table thead tr th#selection :checkbox").live('change', function() {
// select all from drop down menu
$
(
"
ul.dropdown-selector li.select-all a
"
).
live
(
'
click
'
,
function
()
{
$
(
"
:checkbox
"
).
attr
(
"
checked
"
,
true
);
$
(
"
.dropdown-selector
"
).
slideToggle
(
'
medium
'
);
return
false
;
});
// select none from drop down menu
$
(
"
ul.dropdown-selector li.select-none a
"
).
live
(
'
click
'
,
function
()
{
$
(
"
:checkbox
"
).
attr
(
"
checked
"
,
false
);
$
(
"
.dropdown-selector
"
).
slideToggle
(
'
medium
'
);
return
false
;
});
// select group from drop down menu
$
(
"
ul.dropdown-selector li.select-group a
"
).
live
(
'
click
'
,
function
()
{
$
(
"
:checkbox
"
).
attr
(
"
checked
"
,
true
);
$
(
"
.dropdown-selector
"
).
slideToggle
(
'
medium
'
);
return
false
;
});
...
...
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