civicrm/civicrm-core — pull request #4745 by totten (2014-12-18 10:52:25+00:00)
Title: CRM-15578 - crmMailing - Fix for sending tests

The basic problem is that one must save before sending a test -- and the
"save" mechanics are necessarily different for crmMailing and crmMailingAB.

This commit resolves the problem by refactoring to eliminate PreviewMailingCtrl.
Now:

* Ultimate authority for deciding how to perform a preview or test mailing lies with
the main page (EditMailingCtrl, crmMailing/edit.html, CrmMailingABEditCtrl, crmMailingAB/edit.html)
* We don't want it to be difficult for the main page to do that, so we define two reusable
components -- directive crmMailingBlockPreview and service crmMailingPreviewMgr.