diff options
author | zotlabs <mike@macgirvin.com> | 2017-09-12 22:32:31 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-09-12 22:32:31 -0700 |
commit | 5e99295bf6f85e7a6d50e0c8f0701a9b37f03332 (patch) | |
tree | 73005cc356bc4e1060f28859247e76fe4c706c45 /view/tpl | |
parent | 4ff89a58625e647ee74087dfab79ac6dd76cbe6c (diff) | |
download | volse-hubzilla-5e99295bf6f85e7a6d50e0c8f0701a9b37f03332.tar.gz volse-hubzilla-5e99295bf6f85e7a6d50e0c8f0701a9b37f03332.tar.bz2 volse-hubzilla-5e99295bf6f85e7a6d50e0c8f0701a9b37f03332.zip |
wiki mimetype selection
Diffstat (limited to 'view/tpl')
-rw-r--r-- | view/tpl/wiki_page_list.tpl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/view/tpl/wiki_page_list.tpl b/view/tpl/wiki_page_list.tpl index 6d09fcd5d..2e7fb8b9e 100644 --- a/view/tpl/wiki_page_list.tpl +++ b/view/tpl/wiki_page_list.tpl @@ -21,6 +21,7 @@ <div id="new-page-form-wrapper" class="sub-menu" style="display:none;"> <form id="new-page-form" action="wiki/{{$channel_address}}/create/page" method="post" > <input type="hidden" name="resource_id" value="{{$resource_id}}"> + {{$mimetype}} {{include file="field_input.tpl" field=$pageName}} <button id="new-page-submit" class="btn btn-primary" type="submit" name="submit" >Submit</button> </form> @@ -33,7 +34,7 @@ {{if $canadd}} <script> $('#new-page-submit').click(function (ev) { - $.post("wiki/{{$channel_address}}/create/page", {pageName: $('#id_pageName').val(), resource_id: window.wiki_resource_id}, + $.post("wiki/{{$channel_address}}/create/page", {pageName: $('#id_pageName').val(), resource_id: window.wiki_resource_id, mimetype: $('#id_mimetype').val() }, function(data) { if(data.success) { window.location = data.url; |