Somewhat fixed now

master
assar 8 years ago
parent c687eb60e6
commit 18ec17347e

@ -202,7 +202,7 @@ function perform_query() {
$.getJSON('https://www.elab.kth.se/parts/query/' + filter + '/' + query, function(data) { $.getJSON('https://www.elab.kth.se/parts/query/' + filter + '/' + query, function(data) {
var newResults = $('<div class="results"></div>'); var newResults = $('<div class="results"></div>');
for(var i = 0; i < data.length; i++) { // Create new view for results for(var i = 0; i < data.length; i++) { // Create new view for results
var newRow = $('<div class="reults-row"></div>'); var newRow = $('<div class="results-row"></div>');
var newClicker = $('<a href="#" onclick="show_part_info(' + data[i].id + ')"></a>'); var newClicker = $('<a href="#" onclick="show_part_info(' + data[i].id + ')"></a>');
newClicker.append($('<div class="results-block"></div>').text(text_filter(data[i].block))); newClicker.append($('<div class="results-block"></div>').text(text_filter(data[i].block)));

Loading…
Cancel
Save