diff options
author | Jochen Topf <jochen@topf.org> | 2014-05-18 17:44:30 +0200 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2014-05-18 17:44:30 +0200 |
commit | 2a42335d0d757a12627def6f2200486338ec7ded (patch) | |
tree | 2d8010ee3905ca11eb33079b874893d83598de05 /web/lib | |
parent | b943cea16aedb71ca3c05bae2e726c195bfb4b12 (diff) | |
download | taginfo-2a42335d0d757a12627def6f2200486338ec7ded.tar taginfo-2a42335d0d757a12627def6f2200486338ec7ded.tar.gz |
Add keyboard shortcut for comparison page.
Diffstat (limited to 'web/lib')
-rw-r--r-- | web/lib/javascript.rb | 3 | ||||
-rw-r--r-- | web/lib/ui/compare.rb | 1 | ||||
-rw-r--r-- | web/lib/ui/keys.rb | 2 | ||||
-rw-r--r-- | web/lib/ui/tags.rb | 2 |
4 files changed, 3 insertions, 5 deletions
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 |