summaryrefslogtreecommitdiff
path: root/lib/scripts/editor.js
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2011-11-27 16:32:35 +0100
committerAndreas Gohr <andi@splitbrain.org>2011-11-27 16:32:35 +0100
commit8d739053e2e2092fa7136a1709c730407f770143 (patch)
tree60fd94495dee675daf848d0c6e990bc66d46f592 /lib/scripts/editor.js
parent9df43a68bac022beef078c9d02df6364edea8596 (diff)
downloadrpg-8d739053e2e2092fa7136a1709c730407f770143.tar.gz
rpg-8d739053e2e2092fa7136a1709c730407f770143.tar.bz2
fix IE8 error FS#2381
A trailing comma created an empty array item causing IE8 to choke.
Diffstat (limited to 'lib/scripts/editor.js')
-rw-r--r--lib/scripts/editor.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/scripts/editor.js b/lib/scripts/editor.js
index 2009ce6af..f36d446d5 100644
--- a/lib/scripts/editor.js
+++ b/lib/scripts/editor.js
@@ -61,9 +61,9 @@ var dw_editor = {
jQuery.each([
['larger', function(){dw_editor.sizeCtl(editor,100);}],
['smaller', function(){dw_editor.sizeCtl(editor,-100);}],
- ['wrap', function(){dw_editor.toggleWrap(editor);}],
+ ['wrap', function(){dw_editor.toggleWrap(editor);}]
], function (_, img) {
- jQuery(document.createElement('img'))
+ jQuery(document.createElement('IMG'))
.attr('src', DOKU_BASE+'lib/images/' + img[0] + '.gif')
.click(img[1])
.appendTo($ctl);