User talk:Js/preview2.js
Appearance
Fixes
![]() | This edit request has been answered. Set the |answered= parameter to no to reactivate your request. |
Could someone apply this bug fix to the script? Currently it does not works on Translatewiki, because $wgLegacyJavaScriptGlobals seems to be set to false there (and will be false here as well in the future). Helder 22:54, 25 October 2012 (UTC)
frm.wpSummary is undefined
I got
Uncaught TypeError: Cannot read property 'value' of undefined
from the following line when trying to do a preview in a new topic on Wikidata:
data = { title: mw.config.get('wgPageName'), text: txt, summary: frm.wpSummary.value}