aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-09-12 22:32:31 -0700
committerzotlabs <mike@macgirvin.com>2017-09-12 22:32:31 -0700
commit5e99295bf6f85e7a6d50e0c8f0701a9b37f03332 (patch)
tree73005cc356bc4e1060f28859247e76fe4c706c45 /view
parent4ff89a58625e647ee74087dfab79ac6dd76cbe6c (diff)
downloadvolse-hubzilla-5e99295bf6f85e7a6d50e0c8f0701a9b37f03332.tar.gz
volse-hubzilla-5e99295bf6f85e7a6d50e0c8f0701a9b37f03332.tar.bz2
volse-hubzilla-5e99295bf6f85e7a6d50e0c8f0701a9b37f03332.zip
wiki mimetype selection
Diffstat (limited to 'view')
-rw-r--r--view/tpl/wiki_page_list.tpl3
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;