Aleksander Machniak
2012-08-27 8eefbb2158c43b51a8c33e6c480cbe61539b9535
program/js/tiny_mce/plugins/advimage/js/image.js
@@ -395,12 +395,14 @@
               if (v == '0')
                  img.style.border = isIE ? '0' : '0 none none';
               else {
                  if (b.length == 3 && b[isIE ? 2 : 1])
                     bStyle = b[isIE ? 2 : 1];
                  var isOldIE = tinymce.isIE && (!document.documentMode || document.documentMode < 9);
                  if (b.length == 3 && b[isOldIE ? 2 : 1])
                     bStyle = b[isOldIE ? 2 : 1];
                  else if (!bStyle || bStyle == 'none')
                     bStyle = 'solid';
                  if (b.length == 3 && b[isIE ? 0 : 2])
                     bColor = b[isIE ? 0 : 2];
                     bColor = b[isOldIE ? 0 : 2];
                  else if (!bColor || bColor == 'none')
                     bColor = 'black';
                  img.style.border = v + 'px ' + bStyle + ' ' + bColor;