Ignore:
Timestamp:
Jun 7, 2011, 3:47:37 PM (14 years ago)
Author:
rick
Message:

Disabled some code to show example filters.

Location:
src/django_gheat/website/static
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • src/django_gheat/website/static/heatmap_extensions_test.js

    r9235 r9237  
    1515// set filter values
    1616$(document).ready(function() {
    17   $.getJSON("/website/foofilter",
     17
     18  // Fastest?: http://stackoverflow.com/questions/170986/what-is-the-best-way-to-add-options-to-a-select-from-an-array-with-jquery
     19  $.getJSON("/website/foofilter/",
    1820    function(json) {
    1921      $.each(json, function(i,json){
    20         $("<option>" + json.gebruiker + "</option>").appendTo("#select_user");
     22        gebruiker_class = json.gebruiker;
     23        $("<option value='"  + json.gebruiker + "'>" + json.gebruiker + "</option>").appendTo("#mark");
    2124        $.each(json.meetrondje, function(m, meetrondje){
    22           $("<option>" + meetrondje.naam + "</option>").appendTo("#select_dataset");
     25          $("<option class='" + gebruiker_class + "' value='" + meetrondje.naam + "'>"+ meetrondje.naam + "</option>").appendTo("#series");
    2326          $.each(meetrondje.nodes, function(n, nodes){
    24             $("<option>" + nodes + "</option>").appendTo("#select_node");
     27            $("<option>" + nodes + "</option>").appendTo("#model");
    2528          });
    26           $("<option>" + meetrondje.datum + "</option>").appendTo("#select_date");
     29//          $("<option>" + meetrondje.datum + "</option>").appendTo("#select_date");
    2730        });
    2831      });
     32// Initiate the chain
     33    $("#series").chained("#mark");
     34    $("#model").chained("#series");
    2935    }
    3036  );
  • src/django_gheat/website/static/style.css

    r9214 r9237  
    6060#filter{
    6161  width:100%-10px;
    62   display:none;
     62/* display:none; */
    6363  padding:5px;
    6464}
Note: See TracChangeset for help on using the changeset viewer.