Sorting search results works now. Added a button to clear the search and submit the form.
This commit is contained in:
parent
712d4b8309
commit
44ea49b06c
3 changed files with 3 additions and 1 deletions
|
|
@ -17,6 +17,7 @@
|
|||
account in the overview yielding zero or neagtive transaction amounts on
|
||||
the screen. ( Martin Kamerbeek / Oqapi )
|
||||
- fixed #10646: Asset History not paginated
|
||||
- fixed #10645: Asset History: search results not sorted as expected
|
||||
|
||||
7.7.14
|
||||
- fixed #10606: shelf selector
|
||||
|
|
|
|||
|
|
@ -149,7 +149,7 @@ sub www_view {
|
|||
|
||||
$output .= q|
|
||||
<div class="yui-skin-sam">
|
||||
<div id="search"><form id="keywordSearchForm"><input type="text" name="keywords" id="keywordsField" /><input type="submit" value="|.$i18n->get(364, 'WebGUI').q|" /></form></div>
|
||||
<div id="search"><form id="keywordSearchForm"><input type="text" name="keywords" id="keywordsField" /><input type="submit" value="|.$i18n->get(364, 'WebGUI').q|" /><input type="submit" value="|.$i18n->get('Clear', 'WebGUI').q|" onclick="this.form.keywords.value='';"/></form></div>
|
||||
<div id="paginationTop"></div>
|
||||
<div id="historyData"></div>
|
||||
<div id="paginationBot"></div>
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ WebGUI.AssetHistory.BuildQueryString = function ( state, dt ) {
|
|||
+ ';sortDir=' + ((state.sortedBy.dir === YAHOO.widget.DataTable.CLASS_DESC) ? "DESC" : "ASC")
|
||||
+ ';results=' + state.pagination.rowsPerPage
|
||||
+ ';sortKey=' + state.sortedBy.key
|
||||
+ ';keywords=' + YAHOO.util.Dom.get('keywordsField').value
|
||||
;
|
||||
return query;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue