equal
deleted
inserted
replaced
181 var fe, f = document.forms[0], h; |
181 var fe, f = document.forms[0], h; |
182 |
182 |
183 tinyMCEPopup.restoreSelection(); |
183 tinyMCEPopup.restoreSelection(); |
184 |
184 |
185 if (!AutoValidator.validate(f)) { |
185 if (!AutoValidator.validate(f)) { |
186 alert(ed.getLang('invalid_data')); |
186 tinyMCEPopup.alert(ed.getLang('invalid_data')); |
187 return false; |
187 return false; |
188 } |
188 } |
189 |
189 |
190 f.width.value = f.width.value == "" ? 100 : f.width.value; |
190 f.width.value = f.width.value == "" ? 100 : f.width.value; |
191 f.height.value = f.height.value == "" ? 100 : f.height.value; |
191 f.height.value = f.height.value == "" ? 100 : f.height.value; |
357 d.getElementById('flv_options').style.display = 'none'; |
357 d.getElementById('flv_options').style.display = 'none'; |
358 d.getElementById('qt_options').style.display = 'none'; |
358 d.getElementById('qt_options').style.display = 'none'; |
359 d.getElementById('shockwave_options').style.display = 'none'; |
359 d.getElementById('shockwave_options').style.display = 'none'; |
360 d.getElementById('wmp_options').style.display = 'none'; |
360 d.getElementById('wmp_options').style.display = 'none'; |
361 d.getElementById('rmp_options').style.display = 'none'; |
361 d.getElementById('rmp_options').style.display = 'none'; |
362 d.getElementById(t + '_options').style.display = 'block'; |
362 |
|
363 if (t) |
|
364 d.getElementById(t + '_options').style.display = 'block'; |
363 } |
365 } |
364 |
366 |
365 function serializeParameters() { |
367 function serializeParameters() { |
366 var d = document, f = d.forms[0], s = ''; |
368 var d = document, f = d.forms[0], s = ''; |
367 |
369 |
598 pl.name = !pl.name ? 'eobj' : pl.name; |
600 pl.name = !pl.name ? 'eobj' : pl.name; |
599 pl.align = !pl.align ? '' : pl.align; |
601 pl.align = !pl.align ? '' : pl.align; |
600 |
602 |
601 // Avoid annoying warning about insecure items |
603 // Avoid annoying warning about insecure items |
602 if (!tinymce.isIE || document.location.protocol != 'https:') { |
604 if (!tinymce.isIE || document.location.protocol != 'https:') { |
603 h += '<object classid="clsid:' + cls + '" codebase="' + codebase + '" width="' + pl.width + '" height="' + pl.height + '" id="' + pl.id + '" name="' + pl.name + '" align="' + pl.align + '">'; |
605 h += '<object classid="' + cls + '" codebase="' + codebase + '" width="' + pl.width + '" height="' + pl.height + '" id="' + pl.id + '" name="' + pl.name + '" align="' + pl.align + '">'; |
604 |
606 |
605 for (n in pl) { |
607 for (n in pl) { |
606 h += '<param name="' + n + '" value="' + pl[n] + '">'; |
608 h += '<param name="' + n + '" value="' + pl[n] + '">'; |
607 |
609 |
608 // Add extra url parameter if it's an absolute URL |
610 // Add extra url parameter if it's an absolute URL |