aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorAndrew Manning <tamanning@zoho.com>2016-05-21 19:02:23 -0400
committerAndrew Manning <tamanning@zoho.com>2016-05-21 19:02:23 -0400
commit049147a9d78b981482297c3daf48c67f31754259 (patch)
tree79584e1c5a6153642732852d8e328f210860d178 /view
parent5f2baa59f5491f3be964b60fce4bec2ccd840ac1 (diff)
downloadvolse-hubzilla-049147a9d78b981482297c3daf48c67f31754259.tar.gz
volse-hubzilla-049147a9d78b981482297c3daf48c67f31754259.tar.bz2
volse-hubzilla-049147a9d78b981482297c3daf48c67f31754259.zip
Successful new wiki git repo and item table record
Diffstat (limited to 'view')
-rw-r--r--view/tpl/wiki.tpl21
1 files changed, 4 insertions, 17 deletions
diff --git a/view/tpl/wiki.tpl b/view/tpl/wiki.tpl
index 30a77551e..f96270856 100644
--- a/view/tpl/wiki.tpl
+++ b/view/tpl/wiki.tpl
@@ -19,20 +19,19 @@
<div class="clear"></div>
</div>
<div id="new-wiki-form-wrapper" class="section-content-tools-wrapper" style="display:none;">
- <form id="new-wiki-form" action="wiki/create/wiki" method="post" >
+ <form id="new-wiki-form" action="wiki/{{$channel}}/create/wiki" method="post" >
<div class="clear"></div>
{{include file="field_input.tpl" field=$wikiName}}
<div class="btn-group pull-right">
- <div id="acl-container">
<div id="profile-jot-submit-right" class="btn-group">
<button id="dbtn-acl" class="btn btn-default btn-sm" data-toggle="modal" data-target="#aclModal" title="Permission settings" onclick="return false;">
- <i id="jot-perms-icon" class="icon-{{$lockstate}} jot-icons">{{$bang}}</i>
+ <i id="jot-perms-icon" class="fa fa-{{$lockstate}} jot-icons">{{$bang}}</i>
</button>
</div>
- </div>
<button id="new-wiki-submit" class="btn btn-primary" type="submit" name="submit" >Create Wiki</button>
</div>
- </form> <div class="clear"></div>
+ </form>
+ <div class="clear"></div>
<hr>
</div>
@@ -99,16 +98,4 @@
ev.preventDefault();
});
- $('#new-wiki-submit').click(function (ev) {
- var wikiName = $('#id_wikiName').val();
- $.post("wiki/{{$channel}}/create/wiki", {name: wikiName}, function (data) {
- if (data.success) {
- $('#wiki-preview').html(data.html);
- } else {
- window.console.log('Error previewing page.');
- }
- }, 'json');
- ev.preventDefault();
- });
-
</script>