+
+
+
diff --git a/src/sunstone/public/app/utils/tab-datatable.js b/src/sunstone/public/app/utils/tab-datatable.js
index bf7b34b0b9..d2465e62ab 100644
--- a/src/sunstone/public/app/utils/tab-datatable.js
+++ b/src/sunstone/public/app/utils/tab-datatable.js
@@ -221,6 +221,19 @@ define(function(require) {
var context = $('#' + this.dataTableId + 'Search-wrapper');
that.setupSearch(context);
+ $("a.advanced-search-clear", context).on('click', function(){
+ $("input", context).val("").trigger("change");
+
+ $("button.advanced-search", context).click();
+ });
+
+ $("input", context).on("keypress", function(e) {
+ var code = e.keyCode || e.which;
+ if (code == 13) {
+ $("button.advanced-search", context).click();
+ }
+ });
+
$("button.advanced-search", context).on('click', function(){
$('#' + that.dataTableId + 'Search-dropdown', context).foundation('close');
that.dataTable.fnDraw(true);
@@ -527,10 +540,6 @@ define(function(require) {
}
}
- if(that.conf.searchDropdownHTML != undefined){
- this.dataTable.fnDraw(true);
- }
-
if (that.postUpdateView) {
that.postUpdateView();
}