summaryrefslogtreecommitdiff
path: root/lib/scripts
diff options
context:
space:
mode:
authorMichael Hamann <michael@content-space.de>2013-02-24 14:03:13 +0100
committerMichael Hamann <michael@content-space.de>2013-02-24 14:06:12 +0100
commitfd215c0fad082b21c598826c70aa0c5f1e078440 (patch)
tree41467090b163df2b4b5004e87f7480e51208c195 /lib/scripts
parente0d6578c4fcc8130316f82645446333b06849a0e (diff)
downloadrpg-fd215c0fad082b21c598826c70aa0c5f1e078440.tar.gz
rpg-fd215c0fad082b21c598826c70aa0c5f1e078440.tar.bz2
Fix sample handling in toolbar in tb_format FS#2691
The previous fix in e38f3066cedb80722b3488e7ab3b2809b6db5363 fixed this bug only in tb_formatln.
Diffstat (limited to 'lib/scripts')
-rw-r--r--lib/scripts/toolbar.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/scripts/toolbar.js b/lib/scripts/toolbar.js
index 059a4ba5c..6d75215e0 100644
--- a/lib/scripts/toolbar.js
+++ b/lib/scripts/toolbar.js
@@ -72,7 +72,7 @@ function initToolbar(tbid,edid,tb, allowblock){
* @author Andreas Gohr <andi@splitbrain.org>
*/
function tb_format(btn, props, edid) {
- var sample = props.title || props.sample;
+ var sample = props.sample || props.title;
insertTags(edid,
fixtxt(props.open),
fixtxt(props.close),