diff options
author | Adrian Lang <lang@cosmocode.de> | 2010-03-09 10:07:09 +0100 |
---|---|---|
committer | Adrian Lang <lang@cosmocode.de> | 2010-03-09 10:07:39 +0100 |
commit | 7e783d07e8533b7e27cec02dd2227ddc83d26d47 (patch) | |
tree | a9f32841b7c82a68e2c9fc876280079fe2f455cb /lib/scripts | |
parent | 5c89f649eb7cf93506cce822d26e6543d10e81f4 (diff) | |
download | rpg-7e783d07e8533b7e27cec02dd2227ddc83d26d47.tar.gz rpg-7e783d07e8533b7e27cec02dd2227ddc83d26d47.tar.bz2 |
Introduce toolbar buttons for headers and stuff
Diffstat (limited to 'lib/scripts')
-rw-r--r-- | lib/scripts/toolbar.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/scripts/toolbar.js b/lib/scripts/toolbar.js index 37987c21a..3f967448c 100644 --- a/lib/scripts/toolbar.js +++ b/lib/scripts/toolbar.js @@ -18,6 +18,10 @@ function initToolbar(tbid,edid,tb, allowblock){ if(!edit) return; if(edit.readOnly) return; + if (typeof allowblock === 'undefined') { + allowblock = true; + } + //empty the toolbar area: toolbar.innerHTML=''; |