Skip to content
Snippets Groups Projects
Commit dba09ad2 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

don't show lock timer in readonly mode FS#2146

parent 55f92d7e
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,7 @@ var locktimer = {
if(!$('dw__editform')) return;
locktimer.pageid = $('dw__editform').elements.id.value;
if(!locktimer.pageid) return;
if($('wiki__text').readOnly) return;
// init ajax component
locktimer.sack = new sack(DOKU_BASE + 'lib/exe/ajax.php');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment