From 2a42335d0d757a12627def6f2200486338ec7ded Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Sun, 18 May 2014 17:44:30 +0200 Subject: Add keyboard shortcut for comparison page. --- web/lib/javascript.rb | 3 +-- web/lib/ui/compare.rb | 1 - web/lib/ui/keys.rb | 2 +- web/lib/ui/tags.rb | 2 +- 4 files changed, 3 insertions(+), 5 deletions(-) (limited to 'web/lib') diff --git a/web/lib/javascript.rb b/web/lib/javascript.rb index cb73ff7..d998f13 100644 --- a/web/lib/javascript.rb +++ b/web/lib/javascript.rb @@ -17,8 +17,7 @@ class Javascript @@js_files = { # :common => [ 'jquery-1.9.0.min', 'jquery-ui-1.9.2.custom.min', 'customSelect.jquery.min', 'jquery.tipsy-minified' ], - :common => [ 'common' ], - :cookie => [ 'jquery.cookie-minified' ], + :common => [ 'common', 'jquery.cookie-minified' ], :taginfo => [ 'taginfo' ], :flexigrid => [ 'jquery-migrate-1.0.0.min', 'flexigrid-minified' ], :d3 => [ 'd3/d3.v3.min' ], diff --git a/web/lib/ui/compare.rb b/web/lib/ui/compare.rb index f2c578f..4c08741 100644 --- a/web/lib/ui/compare.rb +++ b/web/lib/ui/compare.rb @@ -66,7 +66,6 @@ class Taginfo < Sinatra::Base @img_width = TaginfoConfig.get('geodistribution.width') @img_height = TaginfoConfig.get('geodistribution.height') - javascript_for(:cookie) javascript "#{ r18n.locale.code }/compare" erb :compare end diff --git a/web/lib/ui/keys.rb b/web/lib/ui/keys.rb index 6f3e0d0..1d6747b 100644 --- a/web/lib/ui/keys.rb +++ b/web/lib/ui/keys.rb @@ -52,7 +52,7 @@ class Taginfo < Sinatra::Base @img_width = TaginfoConfig.get('geodistribution.width') * TaginfoConfig.get('geodistribution.scale_image') @img_height = TaginfoConfig.get('geodistribution.height') * TaginfoConfig.get('geodistribution.scale_image') - javascript_for(:flexigrid, :cookie, :d3) + javascript_for(:flexigrid, :d3) javascript "#{ r18n.locale.code }/key" erb :key end diff --git a/web/lib/ui/tags.rb b/web/lib/ui/tags.rb index 6fcc995..4632f1d 100644 --- a/web/lib/ui/tags.rb +++ b/web/lib/ui/tags.rb @@ -60,7 +60,7 @@ class Taginfo < Sinatra::Base @img_width = TaginfoConfig.get('geodistribution.width') * TaginfoConfig.get('geodistribution.scale_image') @img_height = TaginfoConfig.get('geodistribution.height') * TaginfoConfig.get('geodistribution.scale_image') - javascript_for(:flexigrid, :cookie) + javascript_for(:flexigrid) javascript "#{ r18n.locale.code }/tag" erb :tag end -- cgit v1.2.3