(function (angular, $, _) {
angular.module('crmMailing', [
- 'crmUtil', 'crmAttachment', 'ngRoute', 'ui.utils', 'crmUi', 'dialogService'
+ 'crmUtil', 'crmAttachment', 'crmAutosave', 'ngRoute', 'ui.utils', 'crmUi', 'dialogService'
]); // TODO ngSanitize, unsavedChanges
// Time to wait before triggering AJAX update to recipients list
{{ts('This mailing has been submitted.')}}
</div>
-<form name="crmMailing" ng-hide="isSubmitted()">
+<form name="crmMailing" ng-hide="isSubmitted()" crm-autosave="save()" crm-autosave-model="mailing">
<div class="crm-block crm-form-block crmMailing">
<div crm-mailing-block-summary crm-mailing="mailing"/>
{{ts('This mailing has been submitted.')}}
</div>
-<form name="crmMailing" ng-hide="isSubmitted()">
+<form name="crmMailing" ng-hide="isSubmitted()" crm-autosave="save()" crm-autosave-model="mailing">
<div class="crm-block crm-form-block crmMailing">
<div crm-mailing-block-summary crm-mailing="mailing"/>
{{ts('This mailing has been submitted.')}}
</div>
-<form name="crmMailing" ng-hide="isSubmitted()">
+<form name="crmMailing" ng-hide="isSubmitted()" crm-autosave="save()" crm-autosave-model="mailing">
<div class="crm-block crm-form-block crmMailing">
<div crm-ui-wizard>
{{ts('This mailing has been submitted.')}}
</div>
-<form name="crmMailing" novalidate ng-hide="isSubmitted()">
+<form name="crmMailing" novalidate ng-hide="isSubmitted()" crm-autosave="save()" crm-autosave-model="mailing">
+
<div class="crm-block crm-form-block crmMailing">
<div crm-ui-wizard>
<div crm-ui-wizard-step crm-title="ts('Define Mailing')">