diff --git a/common/js/common.js b/common/js/common.js index 5c950bc35..5f79bbbc0 100644 --- a/common/js/common.js +++ b/common/js/common.js @@ -450,13 +450,7 @@ function _displayMultimedia(src, width, height, options) { }; var params = jQuery.extend(defaults, options || {}); - var autostart; - if (jQuery.browser.mozilla || jQuery.browser.opera) { - // firefox and opera uses 0 or 1 for autostart parameter. - autostart = (params.autostart && params.autostart != 'false') ? '1' : '0'; - } else { - autostart = (params.autostart && params.autostart != 'false') ? 'true' : 'false'; - } + var autostart = (params.autostart && params.autostart != 'false') ? 'true' : 'false'; delete(params.autostart); var clsid = ""; @@ -483,6 +477,11 @@ function _displayMultimedia(src, width, height, options) { + '' + ''; } else { + if (jQuery.browser.mozilla || jQuery.browser.opera) { + // firefox and opera uses 0 or 1 for autostart parameter. + autostart = (params.autostart && params.autostart != 'false') ? '1' : '0'; + } + html = '