Commits

Ed Brannin  committed b1ce4fd

Version 3: The Type & Nam filters are playing well with each other.

  • Participants
  • Parent commits 1fecf63
  • Tags v3

Comments (0)

Files changed (2)

File feast_dates/app.yaml

 application: feast-dates
-version: 2
+version: 3
 runtime: python
 api_version: 1
 

File feast_dates/js/dates-page.js

   jQuery('#types input, #names input').change(function() {
     var selector = "#dates ." + this.value;
     
-    
+    var hide_class = "HALP-DEFAULT"
+    if (this.name == "types") {
+      hide_class = "hide_type";
+    } else if (this.name == "names") {
+      hide_class = "hide_name";
+    }
     
     //alert(this.id + " is checked: " + this.checked + ".  Selector: " + selector);
     if (this.checked) {
-      $(selector).show();
+      $(selector).removeClass(hide_class);
     } else {
-      $(selector).hide();
+      $(selector).addClass(hide_class);
     };
   });
 });