From 037a419b05f4d703770167deedee96d07a7ee4f2 Mon Sep 17 00:00:00 2001 From: alexisben <alexiben7@gmail.com> Date: Fri, 6 May 2022 17:52:53 +0200 Subject: [PATCH] Fix search on open --- app/views/admin/communication/unsplash/_selector.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/communication/unsplash/_selector.html.erb b/app/views/admin/communication/unsplash/_selector.html.erb index 945317012..65fcea80b 100644 --- a/app/views/admin/communication/unsplash/_selector.html.erb +++ b/app/views/admin/communication/unsplash/_selector.html.erb @@ -117,7 +117,7 @@ path = admin_communication_unsplash_path(website_id: nil, format: :json) modalElement.addEventListener('show.bs.modal', function (){ this.isOpened = true; - this.search.bind(this) + this.search() }.bind(this)); modalElement.addEventListener('hide.bs.modal', function() { -- GitLab