aboutsummaryrefslogtreecommitdiffstats
path: root/public/javascripts/general.js
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2014-01-24 11:24:55 +0000
committerLouise Crow <louise.crow@gmail.com>2014-01-24 11:24:55 +0000
commit63586e47e1b53bca023fdbba83bff2cd138feaf3 (patch)
tree5c9ed659c968f092317de6bab59a712e2584ca66 /public/javascripts/general.js
parent80e66c0fba234fc78f13d5e7635f65d2bc25fe58 (diff)
parentb0a939a4d44077b4602176042ff4432b790561ad (diff)
Merge branch 'release/0.16' into wdtk
Diffstat (limited to 'public/javascripts/general.js')
-rw-r--r--public/javascripts/general.js60
1 files changed, 0 insertions, 60 deletions
diff --git a/public/javascripts/general.js b/public/javascripts/general.js
deleted file mode 100644
index 529bbeb04..000000000
--- a/public/javascripts/general.js
+++ /dev/null
@@ -1,60 +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 .popup-content').html(country_message);
- $('body:not(.front) #other-country-notice').show()
- }
- }
- })
-
- }
- }
-
- // popup messages
- $('#other-country-notice .popup-close').click(function() {
- $('#other-country-notice').hide('slow');
- $.cookie('has_seen_country_message', 1, {expires: 365, path: '/'});
- });
- $('#everypage .popup-close').click(function() {
- $('#everypage').hide('slow');
- $.cookie('seen_foi2', 1, { expires: 7, path: '/' });
- return false;
- });
-
- // "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();
- }
-
-})