aboutsummaryrefslogtreecommitdiffstats
path: root/public/javascripts/general.js
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2013-11-29 15:06:07 +0000
committerLouise Crow <louise.crow@gmail.com>2013-11-29 15:06:07 +0000
commiteb1432f9992275df485f8502ad3ab6f7c8d494b7 (patch)
treeec20310d47c7f4e4cd136ac1671b32db4a379ea7 /public/javascripts/general.js
parent5ddd0620f8023c4bbf7d82e61f841dadd73bb7ba (diff)
parent20089cf7b5045d504b7240bc92e2b6068fcc2246 (diff)
Merge remote-tracking branch 'origin/merged-rails-3-2-assset-pipeline' into rails-3-develop
Conflicts: Gemfile.lock
Diffstat (limited to 'public/javascripts/general.js')
-rw-r--r--public/javascripts/general.js53
1 files changed, 0 insertions, 53 deletions
diff --git a/public/javascripts/general.js b/public/javascripts/general.js
deleted file mode 100644
index b52131b83..000000000
--- a/public/javascripts/general.js
+++ /dev/null
@@ -1,53 +0,0 @@
-$(document).ready(function() {
- // flash message for people coming from other countries
- if(window.location.search.substring(1).search("country_name") == -1) {
- if (!$.cookie('has_seen_country_message')) {
- $.ajax({
- url: "/country_message",
- dataType: 'html',
- success: function(country_message){
- if (country_message != ''){
- $('#other-country-notice').html(country_message);
- $('body:not(.front) #other-country-notice').show()
- }
- }
- })
-
- }
- }
-
- $('#other-country-notice').click(function() {
- $('#other-country-notice').hide();
- $.cookie('has_seen_country_message', 1, {expires: 365, path: '/'});
- });
- // "link to this" widget
- $('a.link_to_this').click(function() {
- var box = $('div#link_box');
- var location = window.location.protocol + "//" + window.location.hostname + $(this).attr('href');
- box.width(location.length + " em");
- box.find('input').val(location).attr('size', location.length + " em");
- box.show();
- box.find('input').select();
- box.position({
- my: "left top",
- at: "left bottom",
- of: this,
- collision: "fit" });
- return false;
- });
-
- $('.close-button').click(function() { $(this).parent().hide() });
- $('div#variety-filter a').each(function() {
- $(this).click(function() {
- var form = $('form#search_form');
- form.attr('action', $(this).attr('href'));
- form.submit();
- return false;
- })
- })
-
- if($.cookie('seen_foi2') == 1) {
- $('#everypage').hide();
- }
-
-})