From c87e6545a9d8c595625eec1d2dcba03fbe6939a9 Mon Sep 17 00:00:00 2001 From: Luke Towers Date: Sun, 6 Oct 2019 23:44:13 -0600 Subject: [PATCH] Use form_ajax in the demo component instead of hardcoded form tags --- plugins/october/demo/components/todo/default.htm | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/plugins/october/demo/components/todo/default.htm b/plugins/october/demo/components/todo/default.htm index 24429ec47..e30428c8e 100644 --- a/plugins/october/demo/components/todo/default.htm +++ b/plugins/october/demo/components/todo/default.htm @@ -1,16 +1,15 @@ -
+{{ form_ajax(__SELF__ ~ '::onAddItem', { + update: "'" ~ __SELF__ ~ "::list': '#result'", + success: "$('#input-item').val('')", + 'data-request-flash': '' +}) }}

To Do List

- + @@ -19,4 +18,4 @@
- +{{ form_close() }}