Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Item13774: improve layout of search results
Item13724: improved PatternSkin integration - docu fixes from F.O. as far as I was able to find out what was changed - moved unsafe inline javascript into a js file of its own
- Loading branch information
1 parent
a6b8bb7
commit e7d936c
Showing
7 changed files
with
120 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,29 @@ | ||
jQuery(function($) { | ||
"use strict"; | ||
|
||
jQuery(function($) { | ||
$(".solrSearchBox form").livequery(function() { | ||
var $this = $(this), | ||
action = $this.attr("action"); | ||
$this.submit(function() { | ||
var search = $this.find("input[name='search']"), | ||
var $form = $(this), | ||
action = $form.attr("action"), | ||
$input = $form.find("input[type=text]"), | ||
position = $.extend({ | ||
my: "right top", | ||
at: "right bottom+11", | ||
}, { | ||
my: $form.data("position-my"), | ||
at: $form.data("position-at"), | ||
}); | ||
|
||
$form.submit(function() { | ||
var search = $form.find("input[name='search']"), | ||
href = action + ((search && search.val())?'#q='+search.val():''); | ||
window.location.href = href; | ||
return false; | ||
}); | ||
|
||
if (typeof($.fn.autosuggest) === 'function') { // make sure autosuggest realy is present | ||
$input.autosuggest({ | ||
position: position, | ||
menuClass: 'natSearchBoxMenu' | ||
}); | ||
} | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.