diff --git a/module/doc/js/view.js b/module/doc/js/view.js index 7f8d8f5f36..eeebab59c2 100644 --- a/module/doc/js/view.js +++ b/module/doc/js/view.js @@ -199,4 +199,16 @@ $(function() }) $('.outline .outline-toggle i.icon-angle-right').trigger("click"); + $('#hisTrigger').on('click', function() + { + var $history = $('#history'); + if($history.hasClass('hidden')) + { + $history.removeClass('hidden'); + } + else + { + $history.addClass('hidden'); + } + }) }) diff --git a/module/doc/view/content.html.php b/module/doc/view/content.html.php index a6be24b7f1..0da7ba8d8b 100644 --- a/module/doc/view/content.html.php +++ b/module/doc/view/content.html.php @@ -56,7 +56,7 @@ $deleteURL = $this->createLink('doc', 'delete', "docID=$doc->id&confirm=yes&from=lib"); echo html::a("javascript:ajaxDeleteDoc(\"$deleteURL\", \"docList\", confirmDelete)", '', '', "title='{$lang->doc->delete}' class='btn btn-link'"); }?> - history?>> + history?>> config->edition == 'max' and $this->app->tab == 'project'):?> -
+