From: Michael Dale Date: Tue, 10 Nov 2009 10:06:10 +0000 (+0000) Subject: * some comment updates X-Git-Tag: 1.31.0-rc.0~38861 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=2d93986fb8a36467a1e339dfa7283c7edebf96cc;p=lhc%2Fweb%2Fwiklou.git * some comment updates * added flag to disable script-loader in remoteMwEmbed.js --- 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; } - - + +