Skip to content
Snippets Groups Projects
Commit c23811d7 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

Merge branch 'feature/unsplash' of github.com:noesya/osuny into feature/unsplash

parents e19d9a57 037a419b
No related branches found
No related tags found
No related merge requests found
...@@ -117,7 +117,7 @@ path = admin_communication_unsplash_path(website_id: nil, format: :json) ...@@ -117,7 +117,7 @@ path = admin_communication_unsplash_path(website_id: nil, format: :json)
modalElement.addEventListener('show.bs.modal', function (){ modalElement.addEventListener('show.bs.modal', function (){
this.isOpened = true; this.isOpened = true;
this.search.bind(this) this.search()
}.bind(this)); }.bind(this));
modalElement.addEventListener('hide.bs.modal', function() { modalElement.addEventListener('hide.bs.modal', function() {
...@@ -128,6 +128,7 @@ path = admin_communication_unsplash_path(website_id: nil, format: :json) ...@@ -128,6 +128,7 @@ path = admin_communication_unsplash_path(website_id: nil, format: :json)
if (event.key === "Enter" && this.isOpened) { if (event.key === "Enter" && this.isOpened) {
event.preventDefault(); event.preventDefault();
event.stopImmediatePropagation(); event.stopImmediatePropagation();
this.search();
} }
}.bind(this)); }.bind(this));
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment