Merge "Added a few more trx sanity checks to DatabaseBase"
[lhc/web/wiklou.git] / resources / mediawiki.action / mediawiki.action.edit.preview.js
index d9ab979..c5cd61e 100644 (file)
                        );
                }
 
-               $( '#editform' ).on( 'click', '#wpPreview, #wpDiff', doLivePreview );
+               // This should be moved down to '#editform', but is kept on the body for now
+               // because the LiquidThreads extension is re-using this module with only half
+               // the EditPage (doesn't include #editform presumably, bug 55463).
+               $( document.body ).on( 'click', '#wpPreview, #wpDiff', doLivePreview );
        } );
 
 }( mediaWiki, jQuery ) );