(js) Fix unsafe JS links

Fixes #4508
This commit is contained in:
Francis Lachapelle
2018-07-11 14:00:54 -04:00
parent 90d03aa81d
commit 05e033ccb5
4 changed files with 10 additions and 6 deletions

View File

@@ -322,9 +322,11 @@
return AddressBook.$query.asc;
};
this.searchMode = function() {
this.searchMode = function($event) {
vm.mode.search = true;
focus('search');
if ($event)
$event.preventDefault();
};
this.cancelSearch = function() {