LivePreview: handle .mw-newarticletext element
authorMatmaRex <matma.rex@gmail.com>
Sat, 1 Sep 2012 16:35:07 +0000 (18:35 +0200)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 5 Sep 2012 18:08:20 +0000 (18:08 +0000)
commit6420dd85383807885592ef8b6b05369ff3dbf5b9
tree5679bbbcda3f00d52fd38bdc38b4d81968793a69
parent69bf1f93ac3b69ced7b7830170d94df1977394ca
LivePreview: handle .mw-newarticletext element

Previously, if LivePreview was used during article creation, the throbber
would be first inserted as the beginning of #mw-content-text (above
.mw-newarticletext), and then overlaid over it on subsequent previews.
Since .mw-newarticletext itself wasn't being faded, this looked ugly.

Now .mw-newarticletext is hidden after first preview and treated like
other elements LivePreview updates. (This mimics the behavior of regular
preview.)

Change-Id: I794d4675721280b041858fd1cb8ca26b32a5ed17
skins/common/preview.js