From 2d93986fb8a36467a1e339dfa7283c7edebf96cc Mon Sep 17 00:00:00 2001 From: Michael Dale Date: Tue, 10 Nov 2009 10:06:10 +0000 Subject: [PATCH] * some comment updates * added flag to disable script-loader in remoteMwEmbed.js --- js2/apiProxyPage.js | 11 +- js2/editPage.js | 6 +- .../example_usage/Add_Media_Wizard.html | 4 +- js2/mwEmbed/jsScriptLoader.php | 11 +- js2/mwEmbed/libAddMedia/dragDropFile.js | 9 +- js2/mwEmbed/libAddMedia/mvAdvFirefogg.js | 101 ++++---- .../libAddMedia/mvBaseUploadInterface.js | 44 ++-- js2/mwEmbed/libAddMedia/mvFirefogg.js | 231 +++++++++--------- js2/mwEmbed/libAddMedia/remoteSearchDriver.js | 196 +++++++-------- js2/mwEmbed/libTimedText/mvTimeTextEdit.js | 224 ++++++++--------- js2/mwEmbed/mv_embed.js | 46 ++-- js2/mwEmbed/tests/testLang.html | 10 +- js2/remoteMwEmbed.js | 16 +- js2/uploadPage.js | 4 +- 14 files changed, 450 insertions(+), 463 deletions(-) diff --git a/js2/apiProxyPage.js b/js2/apiProxyPage.js index 327e5c664a..79590cc82b 100644 --- a/js2/apiProxyPage.js +++ b/js2/apiProxyPage.js @@ -1,11 +1,11 @@ /* * mwProxy js2 page system. * -* invokes the apiProxy system +* Invokes the apiProxy system */ /* - * since this is proxy server set a pre-append debug flag to know which debug msgs are coming from where + * Since this is proxy server set a pre-append debug flag to know which debug msgs are coming from where */ $mw.conf['debug_pre'] = 'Proxy'; @@ -13,13 +13,14 @@ $mw.conf['debug_pre'] = 'Proxy'; if( !mwApiProxyConfig ) var mwApiProxyConfig = {}; -//The default mwApiProxyConfig config -//(presently hard coded but should read from user and site config) +// The default mwApiProxyConfig config +// (presently hard coded but should read from user and site config) var mwApiProxyDefaultConfig = { 'master_whitelist' : [ 'en.wikipedia.org', 'localhost', '127.1.1.100' ], 'master_blacklist' : [] }; -//user_white_list should also be checked and configured at runtime. + +// User white_list should also be checked and configured at runtime. js2AddOnloadHook( function() { //build our configuration from the default and mwApiProxyConfig vars mwApiProxyConfig = $j.extend(true, mwApiProxyDefaultConfig, mwApiProxyConfig); diff --git a/js2/editPage.js b/js2/editPage.js index 28279fee45..c03bf063e6 100644 --- a/js2/editPage.js +++ b/js2/editPage.js @@ -25,7 +25,7 @@ js2AddOnloadHook( function() { // kind of tricky, it would be nice to use run on ready "loader" call here var didWikiEditorBind = false; - //setup the drag drop binding (will only work for html5 upload browsers) + //Set-up the drag drop binding (will only work for html5 upload browsers) //$j('textarea#wpTextbox1').dragFileUpload(); //set up the add-media-wizard binding: @@ -46,7 +46,7 @@ js2AddOnloadHook( function() { } ); } - //add to old toolbar if wikiEditor did not remove '#toolbar' from the page: + //Add to old toolbar if wikiEditor did not remove '#toolbar' from the page: setTimeout(function(){ if( $j('#btn-add-media-wiz').length == 0 && $j( '#toolbar' ).length != 0 ){ js_log(' old toolbar bind:'); @@ -57,7 +57,7 @@ js2AddOnloadHook( function() { ); }else{ js_log('failed to bind via build section bind via target:'); - //make sure the wikieditor got binded: + //Make sure the wikieditor got binded: if( !didWikiEditorBind ) $j(".tool[rel='file']").unbind().addMediaWiz( amwConf ); } diff --git a/js2/mwEmbed/example_usage/Add_Media_Wizard.html b/js2/mwEmbed/example_usage/Add_Media_Wizard.html index 6f7270662e..5e9f8935a9 100644 --- a/js2/mwEmbed/example_usage/Add_Media_Wizard.html +++ b/js2/mwEmbed/example_usage/Add_Media_Wizard.html @@ -11,8 +11,8 @@ border:medium none; } - - + +