r50762 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r50761‎ | r50762 | r50763 >
Date:23:54, 18 May 2009
Author:dale
Status:deferred
Tags:
Comment:
added checking for fireofogg state
fixed some loading paths.
Modified paths:
  • /branches/new-upload/phase3/js2/mwEmbed/example_usage/Make_Ogg.html (modified) (history)
  • /branches/new-upload/phase3/js2/mwEmbed/libAddMedia/mvUploader.js (modified) (history)
  • /branches/new-upload/phase3/js2/mwEmbed/php/jsAutoloadLocalClasses.php (modified) (history)

Diff [purge]

Index: branches/new-upload/phase3/js2/mwEmbed/php/jsAutoloadLocalClasses.php
@@ -51,7 +51,7 @@
5252
5353 //libAddMedia:
5454 $wgJSAutoloadLocalClasses['mvFirefogg'] = $wgMwEmbedDirectory . 'libAddMedia/mvFirefogg.js';
55 - $wgJSAutoloadLocalClasses['mvAdvFirefogg'] = $wgMwEmbedDirectory . 'libAddMedia/advFirefogg.js';
 55+ $wgJSAutoloadLocalClasses['mvAdvFirefogg'] = $wgMwEmbedDirectory . 'libAddMedia/mvAdvFirefogg.js';
5656 $wgJSAutoloadLocalClasses['mvUploader'] = $wgMwEmbedDirectory . 'libAddMedia/mvUploader.js';
5757 $wgJSAutoloadLocalClasses['remoteSearchDriver'] = $wgMwEmbedDirectory . 'libAddMedia/remoteSearchDriver.js';
5858 $wgJSAutoloadLocalClasses['seqRemoteSearchDriver'] = $wgMwEmbedDirectory . 'libAddMedia/seqRemoteSearchDriver.js';
Index: branches/new-upload/phase3/js2/mwEmbed/example_usage/Make_Ogg.html
@@ -4,11 +4,16 @@
55 <title>Firefogg - Make Ogg Video in your Browser</title>
66 <script type="text/javascript" src="../jsScriptLoader.php?class=mv_embed"></script>
77 <style type="text/css" media="all">@import "http://www.firefogg.org/css/style.css";</style>
8 -
 8+<style type="text/css" media="all">
 9+.install{
 10+display:none;
 11+}
 12+</style>
913 <script type="text/javascript">
1014 mwAddOnloadHook(function(){
 15+ $j('#check_install').hide();
1116 $j('.install').hide();
12 - if(!($j.browser.mozilla && $h.browser.version >= '1.9.1')) {
 17+ if(!($j.browser.mozilla && $j.browser.version >= '1.9.1')) {
1318 $j('#use_firefox').show();
1419 }else {
1520 if(typeof(Firefogg) != 'undefined' && Firefogg().version >= '0.9.5') {
@@ -61,7 +66,7 @@
6267 '$j.cookie' : 'jquery/jquery.ui-1.7.1/external/jquery.cookie.js',
6368 '$j.ui' : 'jquery/jquery.ui-1.7.1/ui/ui.core.js',
6469 '$j.ui.accordion' : 'jquery/jquery.ui-1.7.1/ui/ui.accordion.js',
65 - '$j.ui.slider' : 'jquery/jquery.ui-1.7.1/ui/ui.slider.js';
 70+ '$j.ui.slider' : 'jquery/jquery.ui-1.7.1/ui/ui.slider.js'
6671 },function(){
6772 //do setupSettings:
6873 //for all options see /* iniObj in mvAdvFirefogg.js */
@@ -73,7 +78,7 @@
7479 //the control container (where we put all the controls)
7580 'control_container' : '#control_container'
7681 });
77 - );
 82+ });
7883 }
7984 </script>
8085 </head><body>
@@ -85,7 +90,8 @@
8691 <center>
8792 <table width="500" border="0">
8893 <tr>
89 -<td colspan="2">
 94+<td colspan="2" >
 95+ <div id="check_install"><center>Checking for Firefogg<blink>...</blink></center></div>
9096 <div id="install_linux" class="install">
9197 <a href="linux/Firefogg-0.9.5.xpi">Install Firefogg</a>
9298 </div>
Index: branches/new-upload/phase3/js2/mwEmbed/libAddMedia/mvUploader.js
@@ -424,7 +424,8 @@
425425 'action' : 'upload',
426426 'url' : $j('#wpUploadFileURL').val(),
427427 'filename' : $j('#wpDestFile').val(),
428 - 'comment' : $j('#wpUploadDescription').val()
 428+ 'comment' : $j('#wpUploadDescription').val(),
 429+ 'asyncdownload': true
429430 },
430431 'url' : _this.api_url
431432 }, function( data ){

Status & tagging log