Skip to content

Commit

Permalink
Preload search with newly added entry
Browse files Browse the repository at this point in the history
  • Loading branch information
fsuter committed Jan 24, 2020
1 parent 709b147 commit 99a9652
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Resources/Public/JavaScript/ExternalLinkHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ define([
method: 'POST',
data: $(this).serialize(),
success: function(response) {
// Load the newly created link as a search string so that it appears in the list
if (response) {
$('#table-external-links_filter input[type="search"]').val(response.url);
}

// Reload the Grid and act when done
ExternalLinkHandler.dataTable.ajax.reload(function () {
Expand Down

0 comments on commit 99a9652

Please sign in to comment.