Commit 1ea2e13b authored by Tino Goratsch's avatar Tino Goratsch

fix the guestbook AJAX form submission

parent 653ca0e9
/*
* Copyright (c) by the ACP3 Developers.
* See the LICENSE file at the top-level module directory for licensing details.
*/
jQuery(document).ready(function ($) {
$('#modal-create').on('shown.bs.modal', function () {
$(this).find('[data-ajax-form="true"]').formSubmit();
})
});
......@@ -11,6 +11,9 @@
<p class="text-center">
<a href="{uri args="guestbook/index/create"}" id="create-link" title="{lang t="guestbook|create"}" data-toggle="modal" data-target="#modal-create">{lang t="guestbook|create"}</a>
</p>
{javascripts}
{include_js module="guestbook" file="frontend/index.index"}
{/javascripts}
{else}
<p class="text-center">
<a href="{uri args="guestbook/index/create"}" id="create-link" title="{lang t="guestbook|create"}">{lang t="guestbook|create"}</a>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment