aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes/default/js
diff options
context:
space:
mode:
Diffstat (limited to 'themes/default/js')
-rw-r--r--themes/default/js/popupForm.js20
-rwxr-xr-xthemes/default/js/saveLink.js2
2 files changed, 21 insertions, 1 deletions
diff --git a/themes/default/js/popupForm.js b/themes/default/js/popupForm.js
new file mode 100644
index 00000000..06be3f0c
--- /dev/null
+++ b/themes/default/js/popupForm.js
@@ -0,0 +1,20 @@
1$(document).ready(function() {
2
3 $("#search-form").hide();
4
5 function closeSearch() {
6 $("#search-form").toggle();
7 $("#search").toggleClass("current");
8 $("#search-arrow").toggleClass("arrow-down");
9 }
10
11 $("#search").click(function(){
12 closeSearch();
13 });
14
15 $("#search-form-close").click(function(){
16 closeSearch();
17 });
18
19
20}); \ No newline at end of file
diff --git a/themes/default/js/saveLink.js b/themes/default/js/saveLink.js
index ccc00d1e..bee453c0 100755
--- a/themes/default/js/saveLink.js
+++ b/themes/default/js/saveLink.js
@@ -75,7 +75,7 @@ $.fn.ready(function() {
75 ========================================================================== */ 75 ========================================================================== */
76 76
77 $(window).keydown(function(e){ 77 $(window).keydown(function(e){
78 if ( ( e.target.tagName.toLowerCase() !== 'input' && e.keyCode == 83 ) || e.keyCode == 27 ) { 78 if ( ( e.target.tagName.toLowerCase() !== 'input' && e.keyCode == 83 ) || (e.keyCode == 27 && $bagitForm.is(':visible') ) ) {
79 $bagit.removeClass("current"); 79 $bagit.removeClass("current");
80 $("#bagit-arrow").removeClass("arrow-down"); 80 $("#bagit-arrow").removeClass("arrow-down");
81 toggleSaveLinkForm(); 81 toggleSaveLinkForm();