From 0440249631164a378981d014bf71b617c082bf5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Wed, 21 Jan 2015 16:04:05 +0100 Subject: move templates into resources --- themes/_global/public/js/popupForm.js | 72 ----------------------------------- 1 file changed, 72 deletions(-) delete mode 100644 themes/_global/public/js/popupForm.js (limited to 'themes/_global/public/js/popupForm.js') diff --git a/themes/_global/public/js/popupForm.js b/themes/_global/public/js/popupForm.js deleted file mode 100644 index d233e600..00000000 --- a/themes/_global/public/js/popupForm.js +++ /dev/null @@ -1,72 +0,0 @@ -$(document).ready(function() { - - $("#search-form").hide(); - $("#bagit-form").hide(); - - //--------------------------------------------------------------------------- - // Toggle the "Search" popup in the sidebar - //--------------------------------------------------------------------------- - function toggleSearch() { - $("#search-form").toggle(); - $("#search").toggleClass("current"); - $("#search").toggleClass("active-current"); - $("#search-arrow").toggleClass("arrow-down"); - if ($("#search").hasClass("current")) { - $("#content").addClass("opacity03"); - } else { - $("#content").removeClass("opacity03"); - } - } - - //--------------------------------------------------------------------------- - // Toggle the "Save a Link" popup in the sidebar - //--------------------------------------------------------------------------- - function toggleBagit() { - $("#bagit-form").toggle(); - $("#bagit").toggleClass("current"); - $("#bagit").toggleClass("active-current"); - $("#bagit-arrow").toggleClass("arrow-down"); - if ($("#bagit").hasClass("current")) { - $("#content").addClass("opacity03"); - } else { - $("#content").removeClass("opacity03"); - } - } - - //--------------------------------------------------------------------------- - // Close all #links popups in the sidebar - //--------------------------------------------------------------------------- - function closePopups() { - $("#links .messages").hide(); - $("#links > li > a").removeClass("active-current"); - $("#links > li > a").removeClass("current"); - $("[id$=-arrow]").removeClass("arrow-down"); - $("#content").removeClass("opacity03"); - } - - $("#search").click(function(){ - closePopups(); - toggleSearch(); - $("#searchfield").focus(); - }); - - $("#bagit").click(function(){ - closePopups(); - toggleBagit(); - $("#plainurl").focus(); - }); - - $("#search-form-close").click(function(){ - toggleSearch(); - }); - - $("#bagit-form-close").click(function(){ - toggleBagit(); - }); - - // $("#").click(function(){ - // toggleSearch(); - // }); - - -}); -- cgit v1.2.3