mediawiki.action.edit.preview: Clean up and optimisation
authorTimo Tijhof <krinklemail@gmail.com>
Sun, 6 Oct 2013 21:27:37 +0000 (23:27 +0200)
committerKrinkle <krinklemail@gmail.com>
Mon, 7 Oct 2013 17:44:25 +0000 (17:44 +0000)
commitbecd284d513f52d6ca473c35d11f598f018cfe83
treefdb3d0ce8e7850f5dfb55f9ed745edd754bfb104
parent61e108302fb574c5aa91630e98f565c541865c73
mediawiki.action.edit.preview: Clean up and optimisation

* Remove redundant inline 'position: absolute' on the spinner.
* Remove trailing white space in jquery.spinner.css.
* Cache #editform query result.
* Remove redundant removeSelectors.join(',') logic.
* White space.
* Move delegate click event listener down from body to #editform
  (the common ancestor of the #wpDiff and #wpPreview buttons).
* Remove minHeight (was needed because the spinner was positioned
  absolute), which gets rid of the weird white gap for #wikiPreview if
  you do live diff instead of live preview.

Change-Id: Icdf975f201947ecadb886057131f2531c68791fb
resources/jquery/jquery.spinner.css
resources/mediawiki.action/mediawiki.action.edit.preview.js