-
Notifications
You must be signed in to change notification settings - Fork 111
Seemingly useless code in Form #814
Copy link
Copy link
Closed
Description
Inside Form->ajaxSubmit():
$caught = function ($e, $useWindow) {
$html = '<div class="header"> '.
htmlspecialchars(get_class($e)).
' </div> <div class="content"> '.
($e instanceof \atk4\core\Exception ? $e->getHTML() : nl2br(htmlspecialchars($e->getMessage()))).
' </div>';
$this->app->terminate(json_encode(['success' => false, 'message' => $html, 'useWindow' => $useWindow]));
};
I cannot find any usage of this function, it seems it can be deleted.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels