Changeset 9233 for src/django_gheat/website
- Timestamp:
- Jun 6, 2011, 8:22:23 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/django_gheat/website/static/heatmap_extensions_test.js
r9232 r9233 61 61 var layername = '<input type="text" id="lname" name="lname" size="10"/> Layername<br />'; 62 62 var colour = '<input type="text" id="colour" name="colour" size="10"/> Colour<br />'; 63 var user = '<select id="user" style="width:104px" onchange=filter_user()></select> User<br />';64 var dataset = '<select id="dataset" style="width:104px" onchange=filter_node()></select> Dataset<br />';65 var node = '<select id="node" style="width:104px" onchange=update_filters(this.id)></select> Node<br />';63 var user = '<select id="user" style="width:104px"></select> User<br />'; 64 var dataset = '<select id="dataset" style="width:104px"></select> Dataset<br />'; 65 var node = '<select id="node" style="width:104px"></select> Node<br />'; 66 66 var enc = '<select id="enc" style="width:104px"></select> Encryption<br />'; 67 var date = '<select id="date" style="width:104px" onchange=filter_date()></select> Date<br />';67 var date = '<select id="date" style="width:104px"></select> Date<br />'; 68 68 69 69 // Write form to document … … 79 79 function set_filters(responseText) { 80 80 json=eval('(' + responseText + ')'); 81 var user = '<option> Select user</option><option>All</option>';82 var dataset = '<option> Select dataset</option><option>All</option>';83 var date = '<option> Select date</option><option>All</option>';84 var node = '<option> Select node</option><option>All</option>';81 var user = '<option>All</option>'; 82 var dataset = '<option>All</option>'; 83 var date = '<option>All</option>'; 84 var node = '<option>All</option>'; 85 85 for (var i=0; i<json.length; i++){ 86 86 user += '<option>' + json[i].gebruiker + '</option>'; … … 104 104 var user = $('#user option:selected').text(); 105 105 var dataset = $('#dataset option:selected').text(); 106 var wlnode = $('# wlnode option:selected').text();106 var wlnode = $('#node option:selected').text(); 107 107 var enc = $('#enc option:selected').text(); 108 108 var date = $('#date option:selected').text(); … … 110 110 var lname = encodeURIComponent(document.getElementById("lname").value); 111 111 112 if ( (user != 'Select user') && (user != 'All')){user='&meetrondje__gebruiker__naam='+user;}112 if (user != 'All'){user='&meetrondje__gebruiker__naam='+user;} 113 113 else{user='';} 114 if ( (dataset != 'Select dataset') && (dataset != 'All')){dataset='&meetrondje__naam='+dataset;}114 if (dataset != 'All'){dataset='&meetrondje__naam='+dataset;} 115 115 else{dataset='';} 116 if ( (wlnode != 'Select node') && (dataset != 'All')){wlnode='&accespoint__ssid='+wlnode;}116 if (wlnode != 'All'){wlnode='&accespoint__ssid='+wlnode;} 117 117 else{wlnode='';} 118 118 if (enc != ''){enc='&accespoint__encryptie='+enc;} 119 if ( (date != 'Select date') && (date != 'All')){date='&meetrondje__datum='+date;}119 if (date != 'All'){date='&meetrondje__datum='+date;} 120 120 else{date='';} 121 121 if (colour != ''){colour='colour='+colour;}
Note:
See TracChangeset
for help on using the changeset viewer.