Topic on Extension talk:VisualEditor

How to hide the “Save your changes” confirmation window when saving a page on Mediawiki

10
Paulxu20 (talkcontribs)

I have a personal wiki running on mediawiki and don't think I really need to track the page edit summary or whatsoever, so is there anyway to skip it? which means when I am done with editing on a page and click on Save, it just Save the page without asking me to describe what I changed..

Thank you!

195.65.170.10 (talkcontribs)

Did u find a way to this problem or is it still unsolved?

Paulxu20 (talkcontribs)

Not yet.

Michael Z Freeman (talkcontribs)

Looking for this as well.

2003:DF:9F2D:6E00:6059:29B5:482F:F412 (talkcontribs)

Would appreciate a solution for this as well!

DanShearer (talkcontribs)

Hello all,

I have had a quick look at this, and decided it was too much of a specific hack. But for all of you asking this question, see the file:

 VisualEditor/modules/ve-mw/init/targets/ve.init.mw.ArticleTarget.js

where you will find this function:

 ve.init.mw.ArticleTarget.prototype.showSaveDialog

and I'm pretty sure that is where the magic happens. It isn't just a simple case of saying "skip the dialogue" because there are numerous messages that are handled.

HtH,

DanShearer (talk) 01:25, 11 December 2022 (UTC)

81.59.58.232 (talkcontribs)

Adding this at the beginning of ve.init.mw.ArticleTarget.prototype.showSaveDialog


this.save(this.getDocToSave(), this.getSaveOptions());

this.tryTeardown(true);

return;


Seems to save the changes without annoying popup and leave the editing mode. But it still requires a manual page refresh (or clicking the Page tab) to see the saved changes.

81.59.58.232 (talkcontribs)

Read tab, not the Page tab

81.59.58.232 (talkcontribs)

Well both are fine actually ;-)

Reply to "How to hide the “Save your changes” confirmation window when saving a page on Mediawiki"