Skip to content
Snippets Groups Projects
Commit aaef917f authored by Chris Hallberg's avatar Chris Hallberg
Browse files

Whitespace adjustment.

parent 8c620e53
Branches
Tags
No related merge requests found
...@@ -14,7 +14,7 @@ function VuFindNamespace(p, s) { ...@@ -14,7 +14,7 @@ function VuFindNamespace(p, s) {
}; };
/* --- GLOBAL FUNCTIONS --- */ /* --- GLOBAL FUNCTIONS --- */
function htmlEncode(value){ function htmlEncode(value) {
if (value) { if (value) {
return jQuery('<div />').text(value).html(); return jQuery('<div />').text(value).html();
} else { } else {
...@@ -351,7 +351,7 @@ function keyboardShortcuts() { ...@@ -351,7 +351,7 @@ function keyboardShortcuts() {
$target = $('.pager').find('a.previous'); $target = $('.pager').find('a.previous');
if ($target.length > 0) { if ($target.length > 0) {
$target[0].click(); $target[0].click();
return; return;
} }
break; break;
case 38: // up arrow key case 38: // up arrow key
...@@ -359,23 +359,23 @@ function keyboardShortcuts() { ...@@ -359,23 +359,23 @@ function keyboardShortcuts() {
$target = $('.pager').find('a.backtosearch'); $target = $('.pager').find('a.backtosearch');
if ($target.length > 0) { if ($target.length > 0) {
$target[0].click(); $target[0].click();
return; return;
} }
} }
break; break;
case 39: //right arrow key case 39: //right arrow key
$target = $('.pager').find('a.next'); $target = $('.pager').find('a.next');
if ($target.length > 0) { if ($target.length > 0) {
$target[0].click(); $target[0].click();
return; return;
} }
break; break;
case 40: // down arrow key case 40: // down arrow key
break; break;
} }
} }
}); });
} }
} }
$(document).ready(function() { $(document).ready(function() {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment