From f76b5fee813ad88155a330ecd4053e29567cb75d Mon Sep 17 00:00:00 2001 From: Daniel Molina Date: Fri, 3 Jul 2015 12:09:57 +0200 Subject: [PATCH] feature #3748: Fix event triggering after pressing enter in a search box --- .../form-panels/create/wizard-tabs/network/html.hbs | 4 ++-- .../form-panels/create/wizard-tabs/storage/html.hbs | 4 ++-- src/sunstone/public/app/utils/tab-datatable.js | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/network/html.hbs b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/network/html.hbs index ae040c0d5f..d3ac4583a5 100644 --- a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/network/html.hbs +++ b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/network/html.hbs @@ -1,6 +1,6 @@
- @@ -17,4 +17,4 @@ - \ No newline at end of file + diff --git a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/storage/html.hbs b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/storage/html.hbs index 5b6e2b7fbb..a3362d078c 100644 --- a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/storage/html.hbs +++ b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/storage/html.hbs @@ -1,9 +1,9 @@
-
-
\ No newline at end of file +
diff --git a/src/sunstone/public/app/utils/tab-datatable.js b/src/sunstone/public/app/utils/tab-datatable.js index 27c85c45b7..75581bc3a3 100644 --- a/src/sunstone/public/app/utils/tab-datatable.js +++ b/src/sunstone/public/app/utils/tab-datatable.js @@ -159,6 +159,7 @@ define(function(require) { var that = this; $('#' + this.dataTableId + 'Search').keyup(function() { that.dataTable.fnFilter($(this).val()); + return false; }) this.dataTable.on('draw', function() { @@ -570,6 +571,7 @@ define(function(require) { $('#' + that.dataTableId + '_search', section).keyup(function() { that.dataTable.fnFilter($(this).val()); + return false; }) if (that.selectOptions.read_only) {