Index: branches/MwEmbedStandAlone/modules/Sequencer/loader.js |
— | — | @@ -63,8 +63,7 @@ |
64 | 64 | 'mw.SequencerConfig' |
65 | 65 | ], |
66 | 66 | [ |
67 | | - '$j.contextMenu', |
68 | | - |
| 67 | + '$j.contextMenu', |
69 | 68 | 'mw.SequencerServer', |
70 | 69 | 'mw.SequencerAddByUrl', |
71 | 70 | 'mw.SequencerAddMedia', |
Index: branches/MwEmbedStandAlone/modules/Sequencer/mw.SequencerServer.js |
— | — | @@ -291,14 +291,15 @@ |
292 | 292 | pageText = _this.getBaseFileDescription() |
293 | 293 | } |
294 | 294 | var request = { |
295 | | - 'action':'edit', |
| 295 | + 'action': 'edit', |
296 | 296 | 'token' : token, |
297 | 297 | 'title' : 'File:' + _this.getVideoFileName(), |
298 | 298 | 'summary' : 'Automated sequence description page for published sequence: ' + _this.getTitleKey(), |
299 | 299 | 'text' : pageText |
300 | 300 | }; |
301 | | - mw.getJSON( _this.getApiUrl(), request, function(data){ |
302 | | - if( data && data.edit && data.edit.result == "Success"){ |
| 301 | + |
| 302 | + mw.getJSON( _this.getApiUrl(), request, function( data ){ |
| 303 | + if( data && data.edit && data.edit.result == "Success" ){ |
303 | 304 | callback( true ); |
304 | 305 | } else { |
305 | 306 | callback( false ); |
— | — | @@ -307,22 +308,24 @@ |
308 | 309 | }) |
309 | 310 | }, |
310 | 311 | |
311 | | - getBaseFileDescription: function(){ |
312 | | - var _this = this; |
313 | | - return 'Published sequence for [['+ _this.getTitleKey() + ']]'; |
| 312 | + getBaseFileDescription: function(){ |
| 313 | + return 'Published sequence for [[' + this.getTitleKey() + ']]'; |
314 | 314 | }, |
315 | 315 | |
316 | 316 | getCommonsDescriptionText: function(){ |
317 | 317 | var _this = this; |
318 | 318 | |
319 | | - var descText = '<!-- ' + |
320 | | - "Note: this is an automated file description for a published video sequence. \n" |
321 | | - "Changes to this wikitext will be overwiten. Please add metadata and categories to\n" + |
322 | | - _this.getTitleKey() + " instead --> \n" + |
| 319 | + var descText = "<!-- " + |
| 320 | + "Note: this is an automated file description for a published video sequence. \n" + |
| 321 | + "Changes to this wikitext will be overwiten. Please add metadata and categories to\n" + |
| 322 | + _this.getTitleKey() + |
| 323 | + " instead --> \n" + |
323 | 324 | "{{Information\n" + |
324 | 325 | "|Description=" + _this.getBaseFileDescription() + "\n" + |
325 | 326 | "|Source= Sequence Sources assets include:\n"; |
326 | 327 | |
| 328 | + |
| 329 | + |
327 | 330 | // loop over every asset: |
328 | 331 | this.sequencer.getSmil().getBody().getRefElementsRecurse(null, 0, function( $node ){ |
329 | 332 | var $apiKeyParam = $node.children("param[name='apiTitleKey']"); |
Index: branches/MwEmbedStandAlone/modules/Sequencer/mw.SequencerAddByUrl.js |
— | — | @@ -121,6 +121,6 @@ |
122 | 122 | // try directly adding the asset |
123 | 123 | } |
124 | 124 | } |
125 | | -} |
| 125 | +}; |
126 | 126 | |
127 | 127 | } )( window.mw ); |
\ No newline at end of file |