Browse Source

little wrong variable :)

little wrong variable :)
hhy89 12 years ago
parent
commit
e71f044a8e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Themes/default/scripts/jquery.sceditor.bbcode.js

+ 1 - 1
Themes/default/scripts/jquery.sceditor.bbcode.js

@@ -1032,7 +1032,7 @@
 
 				var width = ' width=' + $(element).width();
 				var height = ' height=' + $(element).height();
-				var alt = $(element).attr('alt') != undefined ? ' alt=' + $(element).attr('author').php_unhtmlspecialchars() : '';
+				var alt = $(element).attr('alt') != undefined ? ' alt=' + $(element).attr('alt').php_unhtmlspecialchars() : '';
 
 				return '[img' + width + height + alt + ']' + element.attr('src') + '[/img]';
 			},