aboutsummaryrefslogtreecommitdiffstats
path: root/lib/srtgui/static/js/table.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/srtgui/static/js/table.js')
-rw-r--r--lib/srtgui/static/js/table.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/srtgui/static/js/table.js b/lib/srtgui/static/js/table.js
index abcb5ca7..fd241aa6 100644
--- a/lib/srtgui/static/js/table.js
+++ b/lib/srtgui/static/js/table.js
@@ -86,7 +86,8 @@ function tableInit(ctx){
$("#no-results-special-"+ctx.tableName).show();
$("#results-found-"+ctx.tableName).hide();
} else {
- $("#new-search-input-"+ctx.tableName).val(tableParams.search);
+ /* $("#new-search-input-"+ctx.tableName).val(tableParams.search); */
+ $("#new-search-input-"+ctx.tableName).val($("#search-input-"+ctx.tableName).val());
$("#no-results-"+ctx.tableName).show();
}
}
@@ -782,6 +783,10 @@ function tableInit(ctx){
loadData(tableParams);
});
+ $("#new-search-submit-"+ctx.tableName).click(function(e){
+ $("#search-input-"+ctx.tableName).val($("#new-search-input-"+ctx.tableName).val());
+ $('#search-submit-'+ctx.tableName).click();
+ });
clearSearchElements.click(function(e){
e.preventDefault();
@@ -798,6 +803,10 @@ function tableInit(ctx){
if (e.which === 13)
$('#search-submit-'+ctx.tableName).click();
});
+ $("#new-search-input-"+ctx.tableName).keyup(function(e){
+ if (e.which === 13)
+ $('#search-submit-'+ctx.tableName).click();
+ });
/* Stop page jumps when clicking on # links */
$('a[href="#"]').click(function(e){