diff --git a/app/Controllers/Ajax.php b/app/Controllers/Ajax.php index 2ea93b7..338bcef 100644 --- a/app/Controllers/Ajax.php +++ b/app/Controllers/Ajax.php @@ -59,6 +59,13 @@ class Ajax extends BaseController $bills->deleteEntry($this->request->getPost('id')); return json_encode(["result"=>"done"]); } + + public function deleteScheduled(){ + if (!$this->request->isAJAX()) return; + $scheduled = model('App\Models\mScheduled'); + $scheduled->delete($this->request->getPost('id')); + return json_encode(["result"=>"done"]); + } } ?> \ No newline at end of file