mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-28 02:00:57 +00:00
Merge "Remove client-side timeout when saving pages"
This commit is contained in:
commit
e624e17471
|
@ -284,7 +284,12 @@ function save( widget, parsoidData ) {
|
|||
|
||||
savePromise = mw.libs.ve.targetSaver.saveDoc(
|
||||
parsoidData.doc,
|
||||
data
|
||||
data,
|
||||
{
|
||||
// No timeout. Huge talk pages take a long time to save, and falsely reporting an error can
|
||||
// result in duplicate messages when the user retries. (T249071)
|
||||
api: new mw.Api( { ajax: { timeout: 0 } } )
|
||||
}
|
||||
).catch( function ( code, data ) {
|
||||
// Handle edit conflicts. Load the latest revision of the page, then try again. If the parent
|
||||
// comment has been deleted from the page, or if retry also fails for some other reason, the
|
||||
|
|
Loading…
Reference in a new issue