Skip to content

Commit 02ac664

Browse files
committed
Editor / Associated panel / Reset search on popup open.
1 parent 654c6ef commit 02ac664

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

web-ui/src/main/resources/catalog/components/edit/onlinesrc/OnlineSrcDirective.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2196,6 +2196,10 @@
21962196
};
21972197

21982198
$(scope.popupid).modal("show");
2199+
2200+
$("#linktomd-search input").val("");
2201+
scope.searchObj.any = "";
2202+
21992203
var searchParams =
22002204
scope.config.sources && scope.config.sources.metadataStore
22012205
? scope.config.sources.metadataStore.params || {}
@@ -2300,13 +2304,14 @@
23002304

23012305
$(scope.popupid).modal("show");
23022306

2303-
scope.$broadcast("resetSearch");
2307+
scope.clearSearch();
23042308
scope.selection = [];
23052309
});
23062310

23072311
// Clear the search params and input
23082312
scope.clearSearch = function () {
23092313
$("#siblingdd input").val("");
2314+
scope.searchObj.any = "";
23102315
scope.$broadcast("resetSearch");
23112316
};
23122317

web-ui/src/main/resources/catalog/components/edit/onlinesrc/partials/linkToMd.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
>
1212
</label>
1313
<div class="col-sm-10">
14-
<div class="input-group gn-margin-bottom">
14+
<div class="input-group gn-margin-bottom" id="linktomd-search">
1515
<span class="input-group-addon"><i class="fa fa-search"></i></span>
1616
<input
1717
class="form-control"

0 commit comments

Comments
 (0)