dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removes Google web search from exception page
[lhc/web/wiklou.git]
/
resources
/
src
/
mediawiki
/
mediawiki.Upload.js
diff --git
a/resources/src/mediawiki/mediawiki.Upload.js
b/resources/src/mediawiki/mediawiki.Upload.js
index
23b0900
..
7e6cfb6
100644
(file)
--- a/
resources/src/mediawiki/mediawiki.Upload.js
+++ b/
resources/src/mediawiki/mediawiki.Upload.js
@@
-2,8
+2,6
@@
var UP;
/**
var UP;
/**
- * @class mw.Upload
- *
* Used to represent an upload in progress on the frontend.
* Most of the functionality is implemented in mw.Api.plugin.upload,
* but this model class will tie it together as well as let you perform
* Used to represent an upload in progress on the frontend.
* Most of the functionality is implemented in mw.Api.plugin.upload,
* but this model class will tie it together as well as let you perform
@@
-43,6
+41,8
@@
* } );
* } );
*
* } );
* } );
*
+ * @class mw.Upload
+ *
* @constructor
* @param {Object|mw.Api} [apiconfig] A mw.Api object (or subclass), or configuration
* to pass to the constructor of mw.Api.
* @constructor
* @param {Object|mw.Api} [apiconfig] A mw.Api object (or subclass), or configuration
* to pass to the constructor of mw.Api.
@@
-276,7
+276,7
@@
this.setState( Upload.State.UPLOADING );
this.setState( Upload.State.UPLOADING );
- return this.api.
u
pload( this.getFile(), {
+ return this.api.
chunkedU
pload( this.getFile(), {
watchlist: ( this.getWatchlist() ) ? 1 : undefined,
comment: this.getComment(),
filename: this.getFilename(),
watchlist: ( this.getWatchlist() ) ? 1 : undefined,
comment: this.getComment(),
filename: this.getFilename(),
@@
-313,7
+313,7
@@
this.setState( Upload.State.UPLOADING );
this.setState( Upload.State.UPLOADING );
- this.stashPromise = this.api.
u
ploadToStash( this.getFile(), {
+ this.stashPromise = this.api.
chunkedU
ploadToStash( this.getFile(), {
filename: this.getFilename()
} ).then( function ( finishStash ) {
upload.setState( Upload.State.STASHED );
filename: this.getFilename()
} ).then( function ( finishStash ) {
upload.setState( Upload.State.STASHED );