Disable edit section buttons on live preview
authorFomafix <fomafix@googlemail.com>
Thu, 19 Feb 2015 09:31:27 +0000 (09:31 +0000)
committer[[mw:User:Fomafix]] <gerritpatchuploader@gmail.com>
Thu, 19 Feb 2015 09:31:27 +0000 (09:31 +0000)
The classical preview also does not show edit section buttons.

Bug: T89941
Change-Id: I5f9e06f33253cd155e063305b822d4ae6d155011

resources/src/mediawiki.action/mediawiki.action.edit.preview.js

index 68fbe33..e4ccf2b 100644 (file)
                        $.extend( postData, {
                                pst: '',
                                preview: '',
-                               prop: 'text|displaytitle|modules|categorieshtml|templates|langlinks|limitreporthtml'
+                               prop: 'text|displaytitle|modules|categorieshtml|templates|langlinks|limitreporthtml',
+                               disableeditsection: true
                        } );
                        if ( section !== '' ) {
                                postData.sectionpreview = '';