Merge "Don't parse the section summary when creating a page by adding a new section."
[lhc/web/wiklou.git] / skins / common / preview.js
index c88272d..5b5a3c6 100644 (file)
                // (mw.loader takes care of stuff if they happen to be loaded already)
                mw.loader.load( 'mediawiki.action.history.diff' );
 
-               $( '#wpPreview, #wpDiff' ).click( doLivePreview );
+               $( document.body ).on( 'click', '#wpPreview, #wpDiff', doLivePreview );
        } );
 } )( mediaWiki, jQuery );