summaryrefslogtreecommitdiff
path: root/web/viewsjs/key.js.erb
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2013-01-07 15:47:05 +0100
committerJochen Topf <jochen@topf.org>2013-01-07 15:47:05 +0100
commita334668751ca122e0e34c77d297f60818e951df6 (patch)
tree608072104444ab955774f6eb7dc6ac4ac419c343 /web/viewsjs/key.js.erb
parent6c3cf500cd115227148c8a8a8e8ce9c51ac337bc (diff)
downloadtaginfo-a334668751ca122e0e34c77d297f60818e951df6.tar
taginfo-a334668751ca122e0e34c77d297f60818e951df6.tar.gz
Empty table issue cleanup.
Sometimes there are not results for some query and you'll end up with an empty table. It would be nice if no empty table appears in this case but instead some nice message. But we can't simply remove the table, because if people use the search-inside-table function and that was the result of the empty table they loose the ability to change the search term. We could only draw the table in the first place if there will be something in it. But just finding out whether there will be something in the table can be quite expensive, for instance with searches for values. So we don't want to do this twice (once in the template to find out whether to draw the table in the first place and once in the API call filling the table.) So we are currently stuck with what we have until somebody invents a better way.
Diffstat (limited to 'web/viewsjs/key.js.erb')
-rw-r--r--web/viewsjs/key.js.erb1
1 files changed, 0 insertions, 1 deletions
diff --git a/web/viewsjs/key.js.erb b/web/viewsjs/key.js.erb
index 6e84c1a..8fc4a04 100644
--- a/web/viewsjs/key.js.erb
+++ b/web/viewsjs/key.js.erb
@@ -129,7 +129,6 @@ var create_flexigrid_for = {
],
sortname: 'value',
sortorder: 'asc',
- emptymsg: '<%= page.josm.no_styles %>',
preProcess: function(data) {
data.rows = jQuery.map(data.data, function(row, i) {
return { 'cell': [