projects
/
MojoFacets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
723ac50
)
select all/none columns with a link click
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 4 Apr 2010 19:35:10 +0000
(21:35 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 4 Apr 2010 19:35:10 +0000
(21:35 +0200)
templates/data/columns.html.ep
patch
|
blob
|
history
diff --git
a/templates/data/columns.html.ep
b/templates/data/columns.html.ep
index
13548eb
..
ad6a79b
100644
(file)
--- a/
templates/data/columns.html.ep
+++ b/
templates/data/columns.html.ep
@@
-12,6
+12,10
@@
$(function() {
$("#sortable").sortable();
$("#sortable").disableSelection();
});
+
+function all_checkboxes(checked) {
+ $("input[type='checkbox']:not([disabled='disabled'])").attr('checked', checked);
+}
</script>
@@
-21,6
+25,9
@@
$(function() {
<form method=post action=/data/table >
+<a href="#" onClick="all_checkboxes(true); return false;">all</a>
+<a href="#" onClick="all_checkboxes(false); return false;">none</a>
+
<ul id="sortable">
% foreach my $n ( @$columns ) {
<li>