diff options
Diffstat (limited to 'view/tpl/wiki.tpl')
-rw-r--r-- | view/tpl/wiki.tpl | 48 |
1 files changed, 3 insertions, 45 deletions
diff --git a/view/tpl/wiki.tpl b/view/tpl/wiki.tpl index cf076c244..6418871c6 100644 --- a/view/tpl/wiki.tpl +++ b/view/tpl/wiki.tpl @@ -1,16 +1,3 @@ -<style type="text/css" media="screen"> - #ace-editor { - position: relative; - width: 100%; - height: 500px; - } - .fade.in { - -webkit-transition: opacity 0.5s 0.5s ease; - -moz-transition: opacity 0.5s 0.5s ease; - -o-transition: opacity 0.5s 0.5s ease; - transition: opacity 0.5s 0.5s ease; - } -</style> {{if $hideEditor}} <div> <p class="lead text-center">{{$chooseWikiMessage}}</p> @@ -79,7 +66,7 @@ <div id="ace-editor"></div> {{if $showCommitMsg}} {{if $showPageControls}} - <div class="section-content-wrapper"> + <div> <div id="id_{{$commitMsg.0}}_wrapper" class='form-group field input'> <label for='id_{{$commitMsg.0}}' id='label_{{$commitMsg.0}}'>{{$commitMsg.1}}{{if $commitMsg.4}}<span class="required"> {{$commitMsg.4}}</span>{{/if}}</label> <span> @@ -95,12 +82,12 @@ {{/if}} </div> <div id="preview-pane" class="tab-pane fade in active"> - <div id="wiki-preview" class="section-content-wrapper"> + <div id="wiki-preview"> {{$renderedContent}} </div> </div> <div id="page-history-pane" class="tab-pane fade" {{if $hidePageHistory}}style="display: none;"{{/if}}> - <div id="page-history-list" class="section-content-wrapper"> + <div id="page-history-list"> </div> </div> @@ -222,27 +209,6 @@ ev.preventDefault(); }); - function wiki_delete_wiki(wikiHtmlName, resource_id) { - if(!confirm('Are you sure you want to delete the entire wiki: ' + JSON.stringify(wikiHtmlName))) { - return; - } - $.post("wiki/{{$channel}}/delete/wiki", {resource_id: resource_id}, function (data) { - if (data.success) { - window.console.log('Wiki deleted'); - // Refresh list and redirect page as necessary - window.location = 'wiki/{{$channel}}'; - } else { - alert('Error deleting wiki!'); - window.console.log('Error deleting wiki.'); - } - }, 'json'); - } - - - function wiki_download_wiki(resource_id) { - window.location = "wiki/{{$channel}}/download/wiki/" + resource_id; - } - function wiki_refresh_page_list() { if (window.wiki_resource_id === '') { return false; @@ -466,14 +432,6 @@ 'json'); }; - function wiki_show_new_wiki_form() { - $('div[id^=\'edit-wiki-form-wrapper\']').hide(); - $('#new-page-form-wrapper').hide(); - $('#edit-wiki-form-wrapper').hide(); - $('#new-wiki-form-wrapper').toggle(); - return false; - } - function wiki_show_new_page_form() { $('div[id^=\'edit-wiki-form-wrapper\']').hide(); $('#edit-wiki-form-wrapper').hide(); |