From 09a5498b178628485768de4acaf21837ecbf7924 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9=20=20=D0=9B=D0=B0=D1=80?= =?UTF-8?q?=D0=B8=D0=BE=D0=BD=D0=BE=D0=B2?= Date: Thu, 26 Oct 2023 17:18:14 +0700 Subject: [PATCH] =?UTF-8?q?=D0=91=D0=B0=D0=B3=20=D1=81=20ajax=20=D0=B7=D0=B0?= =?UTF-8?q?=D0=BF=D1=80=D0=BE=D1=81=D0=B0=D0=BC=D0=B8=20=D1=80=D0=B5=D0=BA=D0?= =?UTF-8?q?=BB=D0=B0=D0=BC=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/admin/employer/index.blade.php | 2 +- resources/views/admin/reclames/index.blade.php | 2 +- resources/views/admin/reclames/index_ajax.blade.php | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/resources/views/admin/employer/index.blade.php b/resources/views/admin/employer/index.blade.php index d37f983..5b41915 100644 --- a/resources/views/admin/employer/index.blade.php +++ b/resources/views/admin/employer/index.blade.php @@ -43,7 +43,7 @@ console.log('click button'); let id = e.target.id; let form = document.getElementById("form_modal_del"); - form.action = "/delete/"+e.target.getAttribute('data-employer')+'/'+e.target.getAttribute('data-user'); + form.action = "admin/employers/delete/"+e.target.getAttribute('data-employer')+'/'+e.target.getAttribute('data-user'); //document.getElementById("title_modal").innerHTML = id; console.log(e.target.getAttribute('data-employer')); console.log(e.target.getAttribute('data-user')); diff --git a/resources/views/admin/reclames/index.blade.php b/resources/views/admin/reclames/index.blade.php index f1d6313..9c4f007 100644 --- a/resources/views/admin/reclames/index.blade.php +++ b/resources/views/admin/reclames/index.blade.php @@ -37,7 +37,7 @@ console.log('click button'); //let id = e.target.id; let form = document.getElementById("form_modal_del"); - form.action = "/delete/"+e.target.getAttribute('data-reclame'); + form.action = "admin/reclames/delete/"+e.target.getAttribute('data-reclame'); //document.getElementById("title_modal").innerHTML = id; console.log(e.target.getAttribute('data-employer')); console.log(e.target.getAttribute('data-user')); diff --git a/resources/views/admin/reclames/index_ajax.blade.php b/resources/views/admin/reclames/index_ajax.blade.php index c5860de..2c2afea 100644 --- a/resources/views/admin/reclames/index_ajax.blade.php +++ b/resources/views/admin/reclames/index_ajax.blade.php @@ -46,13 +46,12 @@ @method('DELETE') @if ($reclame->is_hidden) -

|

@else -

|

@endif - + | Удалить + -- 1.7.10.4