aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib/plugins/logviewer/script.js
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2020-08-13 19:48:45 +0200
committerAndreas Gohr <andi@splitbrain.org>2020-08-13 19:48:45 +0200
commit70cc2cbf41ee65a6048aab5aab40e124b337e295 (patch)
treeba5465443598eeb25db763f29b07063766862851 /lib/plugins/logviewer/script.js
parent5b784a2b834405d28627b116e3d44b7d16fc1840 (diff)
downloaddokuwiki-70cc2cbf41ee65a6048aab5aab40e124b337e295.tar.gz
dokuwiki-70cc2cbf41ee65a6048aab5aab40e124b337e295.zip
added logviwer admin plugin
This allows for easy viewing of the available logs. The log format was sligthly adjusted again for easier parsing.
Diffstat (limited to 'lib/plugins/logviewer/script.js')
-rw-r--r--lib/plugins/logviewer/script.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/plugins/logviewer/script.js b/lib/plugins/logviewer/script.js
new file mode 100644
index 000000000..5a5303c84
--- /dev/null
+++ b/lib/plugins/logviewer/script.js
@@ -0,0 +1,8 @@
+/**
+ * Scroll to the end of the log on load
+ */
+jQuery(function () {
+ var $dl = jQuery('#plugin__logviewer').find('dl');
+ if(!$dl.length) return;
+ $dl.animate({ scrollTop: $dl.prop("scrollHeight")}, 500);
+});