Last modified: 2014-10-28 23:10:41 UTC
If you use the Wikitext editor to edit a JS or CSS page on mobile, it throws the following Javascript error: "resp.parse.sections[0] is undefined" Apparently our previewing code assumes that the API always returns sections for pages (which JS and CSS pages don't have).
Prioritization and scheduling of this bug is tracked on Trello card https://trello.com/c/sudMqbUn
Apparently this may be affecting regular pages as well.
Looks like there could be 2 separate bugs, as the preview on regular pages isn't throwing a JS error.
Change 168823 had a related patch set uploaded by Florianschmidtwelzow: EditorApi: Check for sections https://gerrit.wikimedia.org/r/168823
Change 168823 merged by jenkins-bot: EditorApi: Check for sections https://gerrit.wikimedia.org/r/168823