http://www.mediawiki.org/wiki/Special:Code/MediaWiki/73022
Revision: 73022
Author: dale
Date: 2010-09-14 21:25:02 +0000 (Tue, 14 Sep 2010)
Log Message:
-----------
fixed missing + in string
other minor formating updates
Modified Paths:
--------------
branches/MwEmbedStandAlone/modules/Sequencer/loader.js
branches/MwEmbedStandAlone/modules/Sequencer/mw.SequencerAddByUrl.js
branches/MwEmbedStandAlone/modules/Sequencer/mw.SequencerServer.js
Modified: branches/MwEmbedStandAlone/modules/Sequencer/loader.js
===================================================================
--- branches/MwEmbedStandAlone/modules/Sequencer/loader.js 2010-09-14
21:04:32 UTC (rev 73021)
+++ branches/MwEmbedStandAlone/modules/Sequencer/loader.js 2010-09-14
21:25:02 UTC (rev 73022)
@@ -63,8 +63,7 @@
'mw.SequencerConfig'
],
[
- '$j.contextMenu',
-
+ '$j.contextMenu',
'mw.SequencerServer',
'mw.SequencerAddByUrl',
'mw.SequencerAddMedia',
Modified: branches/MwEmbedStandAlone/modules/Sequencer/mw.SequencerAddByUrl.js
===================================================================
--- branches/MwEmbedStandAlone/modules/Sequencer/mw.SequencerAddByUrl.js
2010-09-14 21:04:32 UTC (rev 73021)
+++ branches/MwEmbedStandAlone/modules/Sequencer/mw.SequencerAddByUrl.js
2010-09-14 21:25:02 UTC (rev 73022)
@@ -121,6 +121,6 @@
// try directly adding the asset
}
}
-}
+};
} )( window.mw );
\ No newline at end of file
Modified: branches/MwEmbedStandAlone/modules/Sequencer/mw.SequencerServer.js
===================================================================
--- branches/MwEmbedStandAlone/modules/Sequencer/mw.SequencerServer.js
2010-09-14 21:04:32 UTC (rev 73021)
+++ branches/MwEmbedStandAlone/modules/Sequencer/mw.SequencerServer.js
2010-09-14 21:25:02 UTC (rev 73022)
@@ -291,14 +291,15 @@
pageText =
_this.getBaseFileDescription()
}
var request = {
- 'action':'edit',
+ 'action': 'edit',
'token' : token,
'title' : 'File:' +
_this.getVideoFileName(),
'summary' : 'Automated sequence
description page for published sequence: ' + _this.getTitleKey(),
'text' : pageText
};
- mw.getJSON( _this.getApiUrl(), request,
function(data){
- if( data && data.edit &&
data.edit.result == "Success"){
+
+ mw.getJSON( _this.getApiUrl(), request,
function( data ){
+ if( data && data.edit &&
data.edit.result == "Success" ){
callback( true );
} else {
callback( false );
@@ -307,22 +308,24 @@
})
},
- getBaseFileDescription: function(){
- var _this = this;
- return 'Published sequence for [['+ _this.getTitleKey()
+ ']]';
+ getBaseFileDescription: function(){
+ return 'Published sequence for [[' + this.getTitleKey()
+ ']]';
},
getCommonsDescriptionText: function(){
var _this = this;
- var descText = '<!-- ' +
- "Note: this is an automated file description for a
published video sequence. \n"
- "Changes to this wikitext will be overwiten. Please add
metadata and categories to\n" +
- _this.getTitleKey() + " instead --> \n" +
+ var descText = "<!-- " +
+ "Note: this is an automated file description for a
published video sequence. \n" +
+ "Changes to this wikitext will be overwiten. Please add
metadata and categories to\n" +
+ _this.getTitleKey() +
+ " instead --> \n" +
"{{Information\n" +
"|Description=" + _this.getBaseFileDescription() + "\n"
+
"|Source= Sequence Sources assets include:\n";
+
+
// loop over every asset:
this.sequencer.getSmil().getBody().getRefElementsRecurse(null, 0, function(
$node ){
var $apiKeyParam =
$node.children("param[name='apiTitleKey']");
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs