aboutsummaryrefslogtreecommitdiff
path: root/web/views
diff options
context:
space:
mode:
Diffstat (limited to 'web/views')
-rw-r--r--web/views/compare.erb6
1 files changed, 6 insertions, 0 deletions
diff --git a/web/views/compare.erb b/web/views/compare.erb
index e972b3d..dd2e622 100644
--- a/web/views/compare.erb
+++ b/web/views/compare.erb
@@ -86,6 +86,12 @@
JS.raw(<<"JAVASCRIPT")
function page_init2() {
var data = #{ @data.to_json };
+ jQuery.cookie.json = true;
+ var items = []
+ jQuery.each(data, function(index, item) {
+ items.push([ item.key, (item.value === null ? undefined : item.value) ]);
+ });
+ set_comparison_list(items);
jQuery.each(data, function(index, item) {
var datac = [];
jQuery.each(data, function(i, item) {