Skip to content

Commit 1e4697c

Browse files
author
Gaurav SinghaRoy
committed
fixed UI to show blank results
1 parent a0d02fd commit 1e4697c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

app/assets/javascripts/query.js.coffee

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
display_text += "&nbsp;<span class='badge'>"+data["xml:lang"]+"</span>"
1212
return "<td class='result-col-uri' style=\"word-wrap: break;\">"+display_text+"</td>"
1313

14+
@display_blank_result_column = ->
15+
return "<td class= style=\"word-wrap: break;\">&nbsp;</td>"
16+
1417
@display_sparql_uri = (data) ->
1518
uri_display = data.value
1619
if uri_display.length > 60
@@ -22,6 +25,9 @@
2225
return display_sparql_uri(data)
2326
else if data.type is "literal"
2427
return display_sparql_literal(data)
28+
else
29+
return display_blank_result_column()
30+
2531

2632
@execute_sparql_query =->
2733
if SPARQL.textbox.is_valid()

0 commit comments

Comments
 (0)