crmMailing - Expand "Plain Text" if any text has been set.
authorTim Otten <totten@civicrm.org>
Thu, 12 Feb 2015 23:14:28 +0000 (15:14 -0800)
committerTim Otten <totten@civicrm.org>
Thu, 12 Feb 2015 23:14:28 +0000 (15:14 -0800)
partials/crmMailing/edit-unified2.html
partials/crmMailing/edit-wizard.html
partials/crmMailing/edit.html
partials/crmMailingAB/edit.html

index 6ccc6999c9b1e8d083708770b87b51a80cf7c88c..6db14a278789412b8d654dc3ff114513028bafdf 100644 (file)
@@ -15,7 +15,7 @@
     <div crm-ui-accordion crm-title="ts('HTML')">
       <div crm-mailing-body-html crm-mailing="mailing"/>
     </div>
-    <div crm-ui-accordion crm-title="ts('Plain Text')" crm-collapsed='true'>
+    <div crm-ui-accordion crm-title="ts('Plain Text')" crm-collapsed='!mailing.body_text'>
       <div crm-mailing-body-text crm-mailing="mailing"/>
     </div>
     <span ng-model="placeholder" crm-ui-validate="mailing.body_html || mailing.body_text"></span>
index 3a804d783daab41a9d9fd9fbcca950dcf5718215..ae928342530504075d62040089b12a155af4caa7 100644 (file)
@@ -17,7 +17,7 @@
         <div crm-ui-accordion crm-title="ts('HTML')">
           <div crm-mailing-body-html crm-mailing="mailing"/>
         </div>
-        <div crm-ui-accordion crm-title="ts('Plain Text')" crm-collapsed='true'>
+        <div crm-ui-accordion crm-title="ts('Plain Text')" crm-collapsed='!mailing.body_text'>
           <div crm-mailing-body-text crm-mailing="mailing"/>
         </div>
         <span ng-model="placeholder" crm-ui-validate="mailing.body_html || mailing.body_text"></span>
index 560bcdb3ef1fb81e4974bc3512b1a2e00ae55f5a..fb72ceb98f3762e9093d4b2e7bd92f2a0defa9f8 100644 (file)
@@ -18,7 +18,7 @@
             <div crm-ui-accordion crm-title="ts('HTML')">
               <div crm-mailing-body-html crm-mailing="mailing"/>
             </div>
-            <div crm-ui-accordion crm-title="ts('Plain Text')" crm-collapsed='true'>
+            <div crm-ui-accordion crm-title="ts('Plain Text')" crm-collapsed='!mailing.body_text'>
               <div crm-mailing-body-text crm-mailing="mailing"/>
             </div>
             <span ng-model="placeholder" crm-ui-validate="mailing.body_html || mailing.body_text"></span>
index 5329cbf4001ea17177d838cc16717be146e47b64..96452981d8e469ded4def353ece411102e28ea4d 100644 (file)
@@ -59,7 +59,7 @@
             <div crm-ui-accordion crm-title="ts('HTML')">
               <div crm-mailing-body-html crm-mailing="abtest.mailings.a"/>
             </div>
-            <div crm-ui-accordion crm-title="ts('Plain Text')" crm-collapsed='true'>
+            <div crm-ui-accordion crm-title="ts('Plain Text')" crm-collapsed='!abtest.mailings.a.body_text'>
               <div crm-mailing-body-text crm-mailing="abtest.mailings.a"/>
             </div>
           </div>
             <div crm-ui-accordion crm-title="ts('HTML')">
               <div crm-mailing-body-html crm-mailing="abtest.mailings.a"/>
             </div>
-            <div crm-ui-accordion crm-title="ts('Plain Text')" crm-collapsed='true'>
+            <div crm-ui-accordion crm-title="ts('Plain Text')" crm-collapsed='!abtest.mailings.a.body_text'>
               <div crm-mailing-body-text crm-mailing="abtest.mailings.a"/>
             </div>
           </div>
             <div crm-ui-accordion crm-title="ts('HTML')">
               <div crm-mailing-body-html crm-mailing="abtest.mailings.b"/>
             </div>
-            <div crm-ui-accordion crm-title="ts('Plain Text')" crm-collapsed='true'>
+            <div crm-ui-accordion crm-title="ts('Plain Text')" crm-collapsed='!abtest.mailings.b.body_text'>
               <div crm-mailing-body-text crm-mailing="abtest.mailings.b"/>
             </div>
           </div>