tinyMCEPopup.restoreSelection();\r
\r
if (!AutoValidator.validate(f)) {\r
- alert(ed.getLang('invalid_data'));\r
+ tinyMCEPopup.alert(ed.getLang('invalid_data'));\r
return false;\r
}\r
\r
break;\r
}\r
\r
- if (fe.width != f.width.value || fe.height != f.height.height)\r
+ if (fe.width != f.width.value || fe.height != f.height.value)\r
ed.execCommand('mceRepaint');\r
\r
fe.title = serializeParameters();\r
d.getElementById('shockwave_options').style.display = 'none';\r
d.getElementById('wmp_options').style.display = 'none';\r
d.getElementById('rmp_options').style.display = 'none';\r
- d.getElementById(t + '_options').style.display = 'block';\r
+\r
+ if (t)\r
+ d.getElementById(t + '_options').style.display = 'block';\r
}\r
\r
function serializeParameters() {\r
if (typeof(pl[n]) == "undefined")\r
return;\r
\r
- document.forms[0].elements[p + "_" + n].checked = pl[n];\r
+ document.forms[0].elements[p + "_" + n].checked = pl[n] != 'false';\r
}\r
\r
function setStr(pl, p, n) {\r
tv = typeof(tv) == 'undefined' ? 'true' : "'" + jsEncode(tv) + "'";\r
fv = typeof(fv) == 'undefined' ? 'false' : "'" + jsEncode(fv) + "'";\r
\r
- return (v == d) ? '' : n + (v ? ':' + tv + ',' : ':' + fv + ',');\r
+ return (v == d) ? '' : n + (v ? ':' + tv + ',' : ":\'" + fv + "\',");\r
}\r
\r
function getStr(p, n, d) {\r
\r
// Avoid annoying warning about insecure items\r
if (!tinymce.isIE || document.location.protocol != 'https:') {\r
- h += '<object classid="clsid:' + cls + '" codebase="' + codebase + '" width="' + pl.width + '" height="' + pl.height + '" id="' + pl.id + '" name="' + pl.name + '" align="' + pl.align + '">';\r
+ h += '<object classid="' + cls + '" codebase="' + codebase + '" width="' + pl.width + '" height="' + pl.height + '" id="' + pl.id + '" name="' + pl.name + '" align="' + pl.align + '">';\r
\r
for (n in pl) {\r
h += '<param name="' + n + '" value="' + pl[n] + '">';\r