Index: trunk/extensions/MetavidWiki/skins/mv_embed/libAddMedia/mvFirefogg.js |
— | — | @@ -131,8 +131,9 @@ |
132 | 132 | ext == 'mpeg' || ext == 'mpeg2' || ext == 'mpeg4' || |
133 | 133 | ext == 'dv' || ext=='wmv' ){ |
134 | 134 | //hide ogg warning |
135 | | - $j('#wgfogg_waring_ogg_upload').hide(); |
136 | | - sf = sf.replace( ext, 'ogg' ); |
| 135 | + $j('#wgfogg_waring_ogg_upload').hide(); |
| 136 | + var extreg = new RegExp(ext + '$', 'i'); |
| 137 | + sf = sf.replace(extreg, 'ogg'); |
137 | 138 | $j('#wpDestFile').val( sf ); |
138 | 139 | }else{ |
139 | 140 | //not video extension error: |