remove javascript positioning of regex filter hint
[MojoFacets.git] / templates / all_checkboxes.html.ep
index 262c847..7e854b2 100644 (file)
@@ -1,3 +1,4 @@
+<span id=column_selection>
 <a id="all"  href="#">all</a>
 <a id="toggle" href="#">toggle</a>
 <a id="none" href="#">none</a>
@@ -8,18 +9,13 @@
 <a id="included" href="#" style="display:none">included</a>
 <a id="excluded" href="#" style="display:none">excluded</a>
 </label>
+</span>
 
 
 <script type="text/javascript">
 
 $(document).ready( function(){
 
-$('label span.hint').position({
-       my: 'left bottom',
-       at: 'left top',
-       of: $('label input'),
-});
-
 $('a#all').click( function(){
     $("input[type='checkbox']:not([disabled='disabled'])").attr('checked', true);
         $('#checked-count').text( $('#facet-count').text() );
@@ -57,13 +53,17 @@ function update_checked_count(full) {
 
 $("input[type='checkbox']").bind( 'click', update_checked_count );
 
+var toggle_checkbox = function() {
+               this.checked = ! this.checked;
+};
+
 $('a#included').click( function(){
-    $("label.included input[type='checkbox']:not([disabled='disabled'])").attr('checked', true);
+    $("label.included input[type='checkbox']:not([disabled='disabled'])").each( toggle_checkbox );
        update_checked_count(1);
 });
 
 $('a#excluded').click( function(){
-    $("label.excluded input[type='checkbox']:not([disabled='disabled'])").attr('checked', true);
+    $("label.excluded input[type='checkbox']:not([disabled='disabled'])").each( toggle_checkbox );
        update_checked_count(1);
 });