CRM-15855 - crmMailing - Use crmAutosave
authorTim Otten <totten@civicrm.org>
Fri, 23 Jan 2015 11:30:23 +0000 (03:30 -0800)
committerTim Otten <totten@civicrm.org>
Sat, 24 Jan 2015 08:02:05 +0000 (00:02 -0800)
js/angular-crmMailing.js
partials/crmMailing/edit-unified.html
partials/crmMailing/edit-unified2.html
partials/crmMailing/edit-wizard.html
partials/crmMailing/edit.html

index 74babf0c6eef9929341b9cc5acc55ea1cf0bf44a..bb58cf4d443e5bf2140de38659e7c234f9cec30b 100644 (file)
@@ -1,7 +1,7 @@
 (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
index 7a1ba07d44f49a9c85bcb4a927777fdeafd17a21..20611907d6b101d559ad2123f4d112edbefaff8d 100644 (file)
@@ -6,7 +6,7 @@
   {{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"/>
index 1b74085e0ecad8db6c0efde9ecb34c48b32b5c1b..4e06cc7df225f568f87c27d723f4b6d1d5db5603 100644 (file)
@@ -6,7 +6,7 @@
   {{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"/>
index a79e0ad02fb5ba0a7db7f907548ca9e2194ced85..124d432dd5fa05bb1f7c426e030c28758341d200 100644 (file)
@@ -6,7 +6,7 @@
   {{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>
index 8216162400638eef9efc91d4ed9e7ec9f02882ef..feb6969f71038ffe91cc10af02f9e995d36fe620 100644 (file)
@@ -6,7 +6,8 @@
   {{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')">