From 739a40db570544367bd213200de46c50bf9a7cea Mon Sep 17 00:00:00 2001 From: Anthony F McInerney Date: Mon, 19 Oct 2020 00:02:07 +0100 Subject: [PATCH] service templates - move to blade - button variable fix --- resources/views/service-template/index.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/service-template/index.blade.php b/resources/views/service-template/index.blade.php index c1a0025df8..2519509a06 100644 --- a/resources/views/service-template/index.blade.php +++ b/resources/views/service-template/index.blade.php @@ -118,7 +118,7 @@ }); } } - function remove_st(button, name, id) { + function remove_st(button, name, id, url) { if (confirm('@lang('Are you sure you want to remove all Services created by ')' + name + '?')) { $.ajax({ url: url, @@ -134,7 +134,7 @@ return false; } - function delete_st(button, name, id) { + function delete_st(button, name, id, url) { var index = button.parentNode.parentNode.rowIndex; if (confirm('@lang('Are you sure you want to delete AND remove all Services created by ')' + name + '?')) { $.ajax({