From 689b25817ca06dda0f50bd4cd1c4f62ce0f5fa4f Mon Sep 17 00:00:00 2001 From: Jeroen Boonstra Date: Fri, 8 Jun 2018 13:25:43 +0200 Subject: [PATCH] Add action to dialog --- app/templates/dashboard.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/templates/dashboard.html b/app/templates/dashboard.html index 1955a06..fa77882 100644 --- a/app/templates/dashboard.html +++ b/app/templates/dashboard.html @@ -199,6 +199,12 @@ modal.modal('show'); }); + $(document.body).on('click', '.refresh-bg-button', function() { + var modal = $("#modal_bg_reload"); + modal.modal('show'); + reload_domains($SCRIPT_ROOT + '/dashboard-domains-updater'); + }); + $(document.body).on("click", ".button_template", function (e) { var modal = $("#modal_template"); var domain = $(this).prop('id');