Change form-submit css class to crm-form-submit
authorColeman Watts <coleman@civicrm.org>
Thu, 7 Aug 2014 12:06:18 +0000 (13:06 +0100)
committerColeman Watts <coleman@civicrm.org>
Thu, 7 Aug 2014 12:06:18 +0000 (13:06 +0100)
37 files changed:
CRM/Admin/Form/Setting/UpdateConfigBackend.php
CRM/Case/Form/CaseView.php
CRM/Contact/Form/Search.php
CRM/Contact/Form/Task/AddToHousehold.php
CRM/Contact/Form/Task/AddToOrganization.php
CRM/Contribute/Form/Contribution/Confirm.php
CRM/Core/Form.php
CRM/Core/Payment/Form.php
CRM/Custom/Form/Option.php
CRM/Event/Form/ManageEvent/Fee.php
CRM/Event/Form/Registration/Confirm.php
CRM/Financial/Form/BatchTransaction.php
CRM/Financial/Form/Search.php
css/bluemarine.css
css/civicrm.css
css/drupal.css
css/joomla.css
css/print.css
templates/CRM/Admin/Page/APIExplorer.tpl
templates/CRM/Block/Add.tpl
templates/CRM/Block/FullTextSearch.tpl
templates/CRM/Case/Form/ActivityTab.tpl
templates/CRM/Contact/Form/Edit/Lock.tpl
templates/CRM/Contact/Form/Task/EmailCommon.js
templates/CRM/Contact/Page/View/Email.tpl
templates/CRM/Contact/Page/View/Note.tpl
templates/CRM/Contact/Page/View/Print.tpl
templates/CRM/Contact/Page/View/Summary.js
templates/CRM/Contribute/Page/ContributionRecur.tpl
templates/CRM/Mailing/Page/Event.tpl
templates/CRM/Mailing/Page/Resubscribe.tpl
templates/CRM/common/TabHeader.js
templates/CRM/common/navigation.js.tpl
templates/CRM/common/success.tpl
tests/phpunit/WebTest/Case/CaseDashboardTest.php
tests/phpunit/WebTest/Contact/InlineFieldsEditTest.php
tests/phpunit/WebTest/Profile/MultiRecordProfileAddTest.php

index b3d096db63a78470b7096ab2cb8c338187bfed08..f543c1796282b7b5b5f566c975744a23f970654d 100644 (file)
@@ -63,7 +63,7 @@ class CRM_Admin_Form_Setting_UpdateConfigBackend extends CRM_Admin_Form_Setting
 
     $this->addElement(
       'submit', $this->getButtonName('next', 'cleanup'), 'Cleanup Caches',
-      array('class' => 'form-submit', 'id' => 'cleanup-cache')
+      array('class' => 'crm-form-submit', 'id' => 'cleanup-cache')
     );
 
     $this->add('text', 'newBaseURL', ts('New Base URL'), NULL, TRUE);
index 48eb90b1f07639b9bdbc3adb44143739d9c2b937..d1dde65e42d48776d7cfd6babef823f13b197dac 100644 (file)
@@ -321,7 +321,7 @@ class CRM_Case_Form_CaseView extends CRM_Core_Form {
           $this->getButtonName('next', 'merge_case'),
           ts('Merge'),
           array(
-            'class' => 'form-submit-inline hiddenElement',
+            'class' => 'crm-form-submit-inline hiddenElement',
           )
         );
       }
index 98286ab061b67e2061fdbf5940c1e350de2c3fb4..fd57b61242d92c8181389eb59fd6ef15b208647e 100644 (file)
@@ -446,7 +446,7 @@ class CRM_Contact_Form_Search extends CRM_Core_Form_Search {
       $this->assign_by_ref('group', $groupValues);
       $this->add('submit', $this->_actionButtonName, ts('Add Contacts to %1', array(1 => $this->_group[$this->_amtgID])),
         array(
-          'class' => 'form-submit',
+          'class' => 'crm-form-submit',
         )
       );
       $this->add('hidden', 'task', CRM_Contact_Task::GROUP_CONTACTS);
index 9f757eaeefe2bbb436187837756d371803e0bffc..2ec983cf4afec92a09fb2b6fc4674c67a95e81b2 100644 (file)
@@ -92,8 +92,8 @@ class CRM_Contact_Form_Task_AddToHousehold extends CRM_Contact_Form_Task {
     $this->assign('searchCount', $searchCount);
     $this->assign('searchDone', $this->get('searchDone'));
     $this->assign('contact_type_display', ts('Household'));
-    $this->addElement('submit', $this->getButtonName('refresh'), ts('Search'), array('class' => 'form-submit'));
-    $this->addElement('submit', $this->getButtonName('cancel'), ts('Cancel'), array('class' => 'form-submit'));
+    $this->addElement('submit', $this->getButtonName('refresh'), ts('Search'), array('class' => 'crm-form-submit'));
+    $this->addElement('submit', $this->getButtonName('cancel'), ts('Cancel'), array('class' => 'crm-form-submit'));
 
     $this->addButtons(array(
         array(
index d9451591e8032b13640c6e9a89e7da67b1534c0a..af9799170000775f8340f72797ab6205afa8b122 100644 (file)
@@ -93,8 +93,8 @@ class CRM_Contact_Form_Task_AddToOrganization extends CRM_Contact_Form_Task {
     $this->assign('searchCount', $searchCount);
     $this->assign('searchDone', $this->get('searchDone'));
     $this->assign('contact_type_display', ts('Organization'));
-    $this->addElement('submit', $this->getButtonName('refresh'), ts('Search'), array('class' => 'form-submit'));
-    $this->addElement('submit', $this->getButtonName('cancel'), ts('Cancel'), array('class' => 'form-submit'));
+    $this->addElement('submit', $this->getButtonName('refresh'), ts('Search'), array('class' => 'crm-form-submit'));
+    $this->addElement('submit', $this->getButtonName('cancel'), ts('Cancel'), array('class' => 'crm-form-submit'));
 
 
     $this->addButtons(array(
index c8cec31f3065b2cf00c4b2e42abab442d55f696d..cde7e569fcadaf088161dfce59d688bf0cd90425 100644 (file)
@@ -531,7 +531,7 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr
       $this->add('image',
         $this->_checkoutButtonName,
         $this->_paymentProcessor['url_button'],
-        array('class' => 'form-submit')
+        array('class' => 'crm-form-submit')
       );
 
       $this->addButtons(array(
index f26ce82e2454c8c57c75b9bdeccf001fcd214b4c..562d3fe970d002599be243bb7753c12a39217162 100644 (file)
@@ -471,10 +471,10 @@ class CRM_Core_Form extends HTML_QuickForm_Page {
       $js = CRM_Utils_Array::value('js', $button);
       $isDefault = CRM_Utils_Array::value('isDefault', $button, FALSE);
       if ($isDefault) {
-        $attrs = array('class' => 'form-submit default');
+        $attrs = array('class' => 'crm-form-submit default');
       }
       else {
-        $attrs = array('class' => 'form-submit');
+        $attrs = array('class' => 'crm-form-submit');
       }
 
       if ($js) {
index 73b4b8b41b8066357f326ccc512dfde28c2b88b8..d461af28e43e95036e52c7e77a56c7d0c69aeb3b 100644 (file)
@@ -289,7 +289,7 @@ class CRM_Core_Payment_Form {
       $form->add('image',
         $form->_expressButtonName,
         $form->_paymentProcessor['url_button'],
-        array('class' => 'form-submit')
+        array('class' => 'crm-form-submit')
       );
     }
   }
@@ -352,7 +352,7 @@ class CRM_Core_Payment_Form {
       $form->add('image',
         $form->_expressButtonName,
         $form->_paymentProcessor['url_button'],
-        array('class' => 'form-submit')
+        array('class' => 'crm-form-submit')
       );
     }
   }
index 2e8af3d9f529027f18e11004611e2d199cd3e7f1..f509ff60906f17d61844bbb55ed38c9fa6c681c3 100644 (file)
@@ -235,7 +235,7 @@ class CRM_Custom_Form_Option extends CRM_Core_Form {
         $this->addElement('button',
           'done',
           ts('Done'),
-          array('onclick' => "location.href='$url'", 'class' => 'form-submit')
+          array('onclick' => "location.href='$url'", 'class' => 'crm-form-submit')
         );
       }
     }
index 879d851f20bb18c7a50d6f537c1fc294db0bf651..c8678770af87c9f3942d4cc7c30f99389f43b296 100644 (file)
@@ -386,7 +386,7 @@ class CRM_Event_Form_ManageEvent_Fee extends CRM_Event_Form_ManageEvent {
     }
     $_showHide->addToTemplate();
     $this->addElement('submit', $this->getButtonName('submit'), ts('Add Discount Set to Fee Table'),
-      array('class' => 'form-submit cancel')
+      array('class' => 'crm-form-submit cancel')
     );
 
     $this->buildAmountLabel();
index 4d6ca14f2eee80fc5cb5f9ee7165363bea0d57f2..4106dee295fa1b3cfb8ca1d6b81f03815ca3cf13 100644 (file)
@@ -303,7 +303,7 @@ class CRM_Event_Form_Registration_Confirm extends CRM_Event_Form_Registration {
       $this->add('image',
         $this->_checkoutButtonName,
         $this->_paymentProcessor['url_button'],
-        array('class' => 'form-submit')
+        array('class' => 'crm-form-submit')
       );
 
       $this->addButtons(array(
index 907f4b34987afcf2aa93c3fd3216da4e6f382b08..acebc2ae35c4ab0a93712b59e240c9385d932190 100644 (file)
@@ -126,7 +126,7 @@ class CRM_Financial_Form_BatchTransaction extends CRM_Contribute_Form {
 
     $this->add('submit','rSubmit', ts('Go'),
       array(
-        'class' => 'form-submit',
+        'class' => 'crm-form-submit',
         'id' => 'GoRemove',
       ));
 
@@ -149,7 +149,7 @@ class CRM_Financial_Form_BatchTransaction extends CRM_Contribute_Form {
 
     $this->add('submit','submit', ts('Go'),
       array(
-        'class' => 'form-submit',
+        'class' => 'crm-form-submit',
         'id' => 'Go',
       ));
     $this->applyFilter('__ALL__', 'trim');
index 2cdbcb08f20fd6aaa26698afd78ee34fe9f3951e..557713df2e306717f6a7bd642a58c2125f6cf8a7 100644 (file)
@@ -103,7 +103,7 @@ class CRM_Financial_Form_Search extends CRM_Core_Form {
 
     $this->add('submit','submit', ts('Go'),
       array(
-        'class' => 'form-submit',
+        'class' => 'crm-form-submit',
         'id' => 'Go',
       ));
 
index 4f6e637d6c8afea475937c7b2c7636437f2ffaa0..95b9cde6cac6f485c65b39bbc255edd6e4f6ed30 100644 (file)
@@ -112,7 +112,7 @@ table {
   font-weight: bold;
   color: #9cf;
 }
-#search .form-text, #search .form-submit {
+#search .form-text, #search .crm-form-submit {
   border: 1px solid #369;
   font-size: 1.1em;
 }
@@ -122,7 +122,7 @@ table {
   padding: 0 0.5em 0 0.5em;
   margin: 0 0 0.5em 0;
 }
-#search .form-submit {
+#search .crm-form-submit {
   height: 1.5em;
 }
 #mission {
index dd4e1cf328d6d0e649abd556e1105e246b5b9a81..6fc41a78a982ecbfe3741a4bbcbc9d36277b64ac 100644 (file)
@@ -346,11 +346,11 @@ input.crm-form-entityref {
   background-image: linear-gradient(top, #eee 1%, #fff 15%);
 }
 
-.crm-container .form-submit {
+.crm-container .crm-form-submit {
   margin: .25em 0.5em 0.25em 0;
 }
 
-.crm-container .form-submit-inline {
+.crm-container .crm-form-submit-inline {
   margin: 0em 0.5em 0.25em 0em;
 }
 
@@ -2376,10 +2376,10 @@ div.grippie {
 .crm-container a.button,
 .crm-container a.button:link,
 .crm-container a.button:visited,
-.crm-container input.form-submit,
+.crm-container input.crm-form-submit,
 .crm-container .crm-button,
 #crm-container input[type=button],
-#crm-container input.form-submit-inline,
+#crm-container input.crm-form-submit-inline,
 #crm-container .crm-button {
   text-shadow: 0 1px 0 black;
   background: #70716B url(../i/crm-button-bg.gif) repeat-x top left;
@@ -2393,10 +2393,10 @@ div.grippie {
   border: 1px solid #3e3e3e;
 }
 
-.crm-container input.form-submit[disabled],
+.crm-container input.crm-form-submit[disabled],
 .crm-container .crm-button[disabled],
 #crm-container input[type=button][disabled],
-#crm-container input.form-submit-inline[disabled],
+#crm-container input.crm-form-submit-inline[disabled],
 #crm-container .crm-button[disabled] {
     color: #999;
 }
@@ -2406,18 +2406,18 @@ div.grippie {
   padding: 1px;
 }
 
-.crm-container input.form-submit,
+.crm-container input.crm-form-submit,
 #crm-container input[type=button],
-#crm-container input.form-submit-inline {
+#crm-container input.crm-form-submit-inline {
   padding: 2px 6px;
 }
 
 .crm-container .crm-button input[type=button],
-.crm-container .crm-button input.form-submit,
-.crm-container .crm-button input.form-submit-inline,
+.crm-container .crm-button input.crm-form-submit,
+.crm-container .crm-button input.crm-form-submit-inline,
 #crm-container .crm-button input[type=button],
-#crm-container .crm-button input.form-submit,
-#crm-container .crm-button input.form-submit-inline {
+#crm-container .crm-button input.crm-form-submit,
+#crm-container .crm-button input.crm-form-submit-inline {
   padding: 2px 4px;
   margin: 0px;
   background: none;
@@ -3644,9 +3644,9 @@ tbody.scrollContent tr.alternateRow {
 .crm-container .crm-button,
 .crm-container a.button,
 .crm-container a.button:link,
-.crm-container input.form-submit,
+.crm-container input.crm-form-submit,
 .crm-container input[type=button],
-.crm-container input.form-submit-inline {
+.crm-container input.crm-form-submit-inline {
   -moz-border-radius: 3px;
   -webkit-border-radius: 3px;
   -khtml-border-radius: 3px;
@@ -3866,7 +3866,7 @@ div.m ul#civicrm-menu,
 }
 
 /* Match font size on 'Continue' button on event participant form (no specific class) */
-#crm-container .crm-event-additionalparticipant-form-block span.crm-button input.form-submit.default {
+#crm-container .crm-event-additionalparticipant-form-block span.crm-button input.crm-form-submit.default {
   font-size: 1.2em;
 }
 
index 30ff7289cf0c6a078cc9e0fa76891538a8466875..dd91ccc3b7a32e500a9408e83e9c878b66c5431b 100644 (file)
@@ -98,7 +98,7 @@ br.clear {
 .container-inline div {
   display: inline;
 }
-.container-inline .form-submit {
+.container-inline .crm-form-submit {
   margin: 0;
 }
 .error {
@@ -151,7 +151,7 @@ tr.light .form-item, tr.dark .form-item {
 .form-item label.option {
   font-weight: normal;
 }
-.form-submit {
+.crm-form-submit {
   margin: 0.5em 0;
 }
 .marker, .form-required {
index 1fcd1d201cf547cc8e3a9a7458e77111baa5184e..f899db0b7b70aa6b4dd5fa236bd5769f2be1094d 100644 (file)
@@ -166,7 +166,7 @@ br.clear {
 .container-inline div {
   display: inline;
 }
-.container-inline .form-submit {
+.container-inline .crm-form-submit {
   margin: 0;
 }
 .item-list .icon {
@@ -221,7 +221,7 @@ tr.light .form-item, tr.dark .form-item {
 .form-item label.option {
   font-weight: normal;
 }
-.form-submit {
+.crm-form-submit {
   margin: 0.5em 0;
 }
 .marker, .form-required {
@@ -289,7 +289,7 @@ tr.light .form-item, tr.dark .form-item {
   font-weight: bold;
   color: #9cf;
 }
-#search .form-text, #search .form-submit {
+#search .form-text, #search .crm-form-submit {
   border: 1px solid #369;
   font-size: 1.1em;
 }
@@ -299,7 +299,7 @@ tr.light .form-item, tr.dark .form-item {
   padding: 0 0.5em 0 0.5em;
   margin: 0 0 0.5em 0;
 }
-#search .form-submit {
+#search .crm-form-submit {
   height: 1.5em;
 }
 #main {
index eeb01a4f34fee08e3144187d34efcf7ef8e7804e..8a8b2d3248ef044a47347194c5b632e6e9415283 100644 (file)
@@ -1,7 +1,7 @@
 /* CiviCRM Print Media Stylesheet */
 
 /* Hide any buttons or other form items when printing*/
-#crm-container .buttons, #crm-container .crm-submit-buttons, #crm-container .crm-actions-ribbon, #crm-container .form-submit {
+#crm-container .buttons, #crm-container .crm-submit-buttons, #crm-container .crm-actions-ribbon, #crm-container .crm-form-submit {
      display: none;
 }
 
index 5b387b0d963942a7e838a43d679a1e3f0bdf2630..6331f5e2eeba306c03da8bfb2dd093826934d33f 100644 (file)
       <tr><td>Javascript</td><td><pre class="prettyprint linenums" id="api-json" title='javascript syntax'></pre></td></tr>
     </table>
   </div>
-  <input type="submit" value="{ts}Execute{/ts}" class="form-submit"/>
+  <input type="submit" value="{ts}Execute{/ts}" class="crm-form-submit"/>
 <pre id="api-result" class="linenums">
 {ts}The result of api calls are displayed in this area.{/ts}
 </pre>
index 46c2f59403c804a199b254b61ef6895b6a6afc1b..1584f897731190e3e18161dbc2e081e961c04222 100644 (file)
@@ -61,7 +61,7 @@
     <input type="hidden" name="qfKey" value="{crmKey name='CRM_Contact_Form_Contact' addSequence=1}" />
 </div>
 
-<div class="form-item"><input type="submit" name="_qf_Contact_next" value="{ts}Save{/ts}" class="form-submit" /></div>
+<div class="form-item"><input type="submit" name="_qf_Contact_next" value="{ts}Save{/ts}" class="crm-form-submit" /></div>
 
 </form>
 </div>
index 8f8009e0466dbfacaec165c4e8e44e5d1f3591b4..6f0a135766bd98357e8aa193a808a5191e4aea50 100644 (file)
@@ -40,7 +40,7 @@
 <div class="block-crm crm-container">
     <form method="post" id="id_fulltext_search">
     <div style="margin-bottom: 8px;">
-    <input type="text" name="text" id='text' value="" style="width: 10em;" />&nbsp;<input type="submit" name="submit" id="fulltext_submit" value="{ts}Go{/ts}" class="form-submit"/ onclick='submitForm();'>
+    <input type="text" name="text" id='text' value="" style="width: 10em;" />&nbsp;<input type="submit" name="submit" id="fulltext_submit" value="{ts}Go{/ts}" class="crm-form-submit"/ onclick='submitForm();'>
     <input type="hidden" name="qfKey" value="{crmKey name='CRM_Contact_Controller_Search' addSequence=1}" />
   </div>
   <select class="form-select" id="fulltext_table" name="fulltext_table">
index 5b175ae3a3b96737cfe846614f6200ad3215dc6a..8429111cb98412a666a3ed20c0f1055553a27256 100644 (file)
@@ -44,7 +44,7 @@
             </td>
             <td style="vertical-align: bottom;">
               {assign var=caseid value=$caseID}
-              <span class="crm-button"><input class="form-submit default" name="_qf_Basic_refresh" value="Search" type="button" onclick="buildCaseActivities( true,{$caseid} )"; /></span>
+              <span class="crm-button"><input class="crm-form-submit default" name="_qf_Basic_refresh" value="Search" type="button" onclick="buildCaseActivities( true,{$caseid} )"; /></span>
             </td>
           </tr>
           <tr>
index 0c4c43af100122eebe33be3f130fd9bde9976935..371887edfcf3347ecaa548347f590b4e4e614094 100644 (file)
@@ -12,7 +12,7 @@ CRM.$(function($) {
       cj('input[name="modified_date"]').val(
               cj('#update_modified_date').attr('data:latest_modified_date')
       );
-      cj('.crm-form-block .form-submit.default').first().click();
+      cj('.crm-form-block .crm-form-submit.default').first().click();
       return false;
     })
     .appendTo(cj('#update_modified_date'))
index 3f6a1b35d68c7f21dd41788d6a5bdf74bd36db7a..0005f3cc8e88efbd56ec3491e0e9e2c440fbe16a 100644 (file)
@@ -2,13 +2,13 @@ CRM.$(function($) {
   //do not copy & paste this - find a way to generalise it
   'use strict';
   // NOTE: Might be safer to say $('[name=_qf_Email_upload]')
-   $('.form-submit').not('.cancel').on("click", function() {
-     $('.form-submit').not('.cancel').attr({value: ts('Processing')});
+   $('.crm-form-submit').not('.cancel').on("click", function() {
+     $('.crm-form-submit').not('.cancel').attr({value: ts('Processing')});
      // CRM-13449 : setting a 0 ms timeout is needed 
      // for some browsers like chrome. Used for purpose of
      // submit the form and stop accidental multiple clicks
      setTimeout(function(){
-       $('.form-submit').not('.cancel').prop({disabled: true});
+       $('.crm-form-submit').not('.cancel').prop({disabled: true});
      }, 0);
    });
 });
index 96d8c70240fe06508ca2c071c5014151e9078b61..7a0913ca2da1f184d9b245f4d98c5079f5a57759 100644 (file)
@@ -32,7 +32,7 @@
 <dt>{ts}To{/ts}</dt><dd>{$toName|escape}</dd>
 <dt>{ts}Subject{/ts}</dt><dd>{$subject}</dd>
 <dt>{ts}Message{/ts}</dt><dd>{$message}</dd>
-<dt>&nbsp;</dt><dd><a class="button cancel form-submit" href="{crmURL p='civicrm/contact/view' q="history=1&show=1&selectedChild=activity"}">{ts}Done{/ts}</a></dd>
+<dt>&nbsp;</dt><dd><a class="button cancel crm-form-submit" href="{crmURL p='civicrm/contact/view' q="history=1&show=1&selectedChild=activity"}">{ts}Done{/ts}</a></dd>
 </dl>
 </fieldset>
 </div>
index 29cace82c896c28a7ae0ca6dda1d04102b2d4735..76f2df760bc56eb6d0e76b240d3aab700846cf6d 100644 (file)
@@ -38,7 +38,7 @@
                {include file="CRM/Form/attachment.tpl"}
             {/if}
           </table>
-          <div class="crm-submit-buttons"><input type="submit" class='cancel form-submit' value="{ts}Done{/ts}"/></div>
+          <div class="crm-submit-buttons"><input type="submit" class='cancel crm-form-submit' value="{ts}Done{/ts}"/></div>
 
         {if $comments}
         <fieldset>
index 2748e89fe86ab854adf26cec3af1574c19b26b26..3c51488f82fa5eb49c8c2827190cee398dd3e864 100644 (file)
@@ -35,7 +35,7 @@
 {/literal}
 <form action="{crmURL p='civicrm/contact/view' q="&cid=`$contactId`&reset=1"}" method="post" id="Print1" >
   <div class="form-item">
-       <span class="element-right"><input onclick="window.print(); return false" class="form-submit default" name="_qf_Print_next" value="{ts}Print{/ts}" type="submit" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input class="form-submit" name="_qf_Print_back" value="{ts}Done{/ts}" type="submit" /></span>
+       <span class="element-right"><input onclick="window.print(); return false" class="crm-form-submit default" name="_qf_Print_next" value="{ts}Print{/ts}" type="submit" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input class="crm-form-submit" name="_qf_Print_back" value="{ts}Done{/ts}" type="submit" /></span>
   </div>
 </form>
 <br />
@@ -43,7 +43,7 @@
     {include file="CRM/Contact/Page/View/Summary.tpl"}
     <form action="{crmURL p='civicrm/contact/view' q="&cid=`$contactId`&reset=1"}" method="post" id="Print2" >
       <div class="form-item">
-           <span class="element-right"><input onclick="window.print(); return false" class="form-submit default" name="_qf_Print_next" value="{ts}Print{/ts}" type="submit" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input class="form-submit" name="_qf_Print_back" value="{ts}Done{/ts}" type="submit" /></span>
+           <span class="element-right"><input onclick="window.print(); return false" class="crm-form-submit default" name="_qf_Print_next" value="{ts}Print{/ts}" type="submit" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input class="crm-form-submit" name="_qf_Print_back" value="{ts}Done{/ts}" type="submit" /></span>
       </div>
     </form>
 </div>
index c814aec7bfcd836f39099c18dba97941aff15718..8845fdf334d6bcb52862fad47a7aed6fdd1e3d2f 100644 (file)
           .click(function() {
             $(form).find('input[name=oplock_ts]').val(errorTag.attr('data:update_oplock_ts'));
             errorTag.parent().hide();
-            $(this).closest('form').find('.form-submit.default').first().click();
+            $(this).closest('form').find('.crm-form-submit.default').first().click();
             return false;
           })
           .appendTo(buttonContainer)
index b30efb3c9d27f83740aa1bec54d95f62e3a6a6c1..fd5be220e08822eac6460273a2479374d27007e4 100644 (file)
@@ -51,7 +51,7 @@
             <tr><td class="label">{ts}Auto Renew?{/ts}</td><td>{if $recur.auto_renew}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}</td></tr>
             {if $recur.payment_processor}<tr><td class="label">{ts}Payment Processor{/ts}</td><td>{$recur.payment_processor}</td></tr>{/if}
           </table>
-          <div class="crm-submit-buttons"><a class="button cancel form-submit" href="{crmURL p='civicrm/contact/view' q='action=browse&selectedChild=contribute'}">{ts}Done{/ts}</a></div>
+          <div class="crm-submit-buttons"><a class="button cancel crm-form-submit" href="{crmURL p='civicrm/contact/view' q='action=browse&selectedChild=contribute'}">{ts}Done{/ts}</a></div>
         </div>
     {/if}
 {/if}
index d22463560dd374e5446ba96933432905e8ccc304..e2cb09113d9389cc54ac826edc58ced868a17b33 100644 (file)
@@ -72,7 +72,7 @@
   <script type="text/javascript">
     var totalPages = {/literal}{$pager->_totalPages}{literal};
     CRM.$(function($) {
-      cj("#crm-container .crm-pager input.form-submit").click(function () {
+      cj("#crm-container .crm-pager input.crm-form-submit").click(function () {
         submitPagerData(this);
       });
     });
index 2212cd886333b9a010de67d78b28e84981d4e082..dd841d340a7f6d80e5b616ed7fc88ed6e3ee6666 100644 (file)
@@ -34,9 +34,9 @@
 {ts 1=$display_name 2=$email}Are you sure you want to resubscribe: %1 (%2){/ts}
 <br/>
 <center>
-<input type="submit" name="_qf_resubscribe_next" value="{ts}Resubscribe{/ts}" class="form-submit" />
+<input type="submit" name="_qf_resubscribe_next" value="{ts}Resubscribe{/ts}" class="crm-form-submit" />
 &nbsp;&nbsp;&nbsp;
-<input type="submit" name="_qf_resubscribe_cancel" value="{ts}Cancel{/ts}" class="form-submit" />
+<input type="submit" name="_qf_resubscribe_cancel" value="{ts}Cancel{/ts}" class="crm-form-submit" />
 </center>
 </form>
 </div>
index 82c19815e039c202bb7e671862d2df45570e7fa1..f6aa5f398a15fca944cdca224d5c346903ad7519 100644 (file)
@@ -23,7 +23,7 @@ CRM.$(function($) {
           params.autoClose = params.openInline = params.cancelButton = params.refreshAction = false;
           ui.panel.on('crmFormLoad', function() {
             // Hack: "Save and done" and "Cancel" buttons submit without ajax
-            $('.cancel.form-submit, input[name$=upload_done]', this).on('click', function(e) {
+            $('.cancel.crm-form-submit, input[name$=upload_done]', this).on('click', function(e) {
               $(this).closest('form').ajaxFormUnbind();
             })
           });
index d5c0a31cedb893cc1ac63c777180a6e209be0ed2..05c8c53d0c3a8e54bcfda052343156f7f0a21b1d 100644 (file)
@@ -33,7 +33,7 @@
             <input type="text" id="sort_contact_id" style="display: none" />
             <input type="hidden" name="hidden_location" value="1" />
             <input type="hidden" name="qfKey" value="{crmKey name='CRM_Contact_Controller_Search' addSequence=1}" />
-            <div style="height:1px; overflow:hidden;"><input type="submit" value="{ts}Go{/ts}" name="_qf_Advanced_refresh" class="form-submit default" /></div>
+            <div style="height:1px; overflow:hidden;"><input type="submit" value="{ts}Go{/ts}" name="_qf_Advanced_refresh" class="crm-form-submit default" /></div>
           </div>
         </form>
         <ul>
index 77abce1d26d22f884e1e7326f5efc0f6e9dca975..c0bf8d97b86f4246c20ab1c7a06ffc0dd7c5c9a1 100644 (file)
@@ -43,7 +43,7 @@
         <p>{ts}Click 'Upgrade Now' if you are ready to proceed. Otherwise click 'Cancel' to return to the CiviCRM home page.{/ts}</p>
         <input type="hidden" name="action" value="begin" />
         <input type="submit" value="{ts}Upgrade Now{/ts}" name="upgrade" onclick="return confirm('{ts escape="js"}Are you sure you are ready to upgrade now?{/ts}');" /> &nbsp;&nbsp;
-        <a class="button cancel form-submit" value="{ts}Cancel{/ts}" href="{$cancelURL}">{ts}Cancel{/ts}</a>
+        <a class="button cancel crm-form-submit" value="{ts}Cancel{/ts}" href="{$cancelURL}">{ts}Cancel{/ts}</a>
     </form>
   </div>
 
index 7db9fcc93c42747996a9fb94045719e18f303514..8442d855df449b815853e2cacb2a68b5390c0eac 100644 (file)
@@ -65,14 +65,14 @@ class WebTest_Case_CaseDashboardTest extends CiviSeleniumTestCase {
     $this->openCiviPage('case', 'reset=1', 'css=a.button');
 
     // Click on find my cases and check if right radio is checked
-    $this->clickLink("name=find_my_cases", "css=input.form-submit");
+    $this->clickLink("name=find_my_cases", "css=input.crm-form-submit");
     $this->assertTrue($this->isChecked("name=case_owner value=2"), 'Find my cases button not properly setting search form value to my cases.');
 
     // Go back to dashboard
     $this->openCivipage('case', 'reset=1', 'css=a.button');
 
     // Click on a drilldown cell and check if right radio is checked
-    $this->clickLink("css=a.crm-case-summary-drilldown", "css=input.form-submit");
+    $this->clickLink("css=a.crm-case-summary-drilldown", "css=input.crm-form-submit");
     $this->assertTrue($this->isChecked("name=case_owner value=1"), 'Drilldown on dashboard summary cells not properly setting search form value to all cases.');
 
     // Go back to dashboard and reset to my cases
@@ -80,7 +80,7 @@ class WebTest_Case_CaseDashboardTest extends CiviSeleniumTestCase {
     $this->clickLink("name=allupcoming value=0", "css=a.button");
 
     // Click on a drilldown cell and check if right radio is checked
-    $this->clickLink("css=a.crm-case-summary-drilldown", "css=input.form-submit");
+    $this->clickLink("css=a.crm-case-summary-drilldown", "css=input.crm-form-submit");
     $this->assertTrue($this->isChecked("name=case_owner value=2"), 'Drilldown on dashboard summary cells not properly setting search form value to my cases.');
   }
 }
index 7db1986a4a7568a0a58265bdf87f8a67ebf5d49d..1a8200ea0e5e80ba1110027941765f6f1aa25baa 100644 (file)
@@ -270,7 +270,7 @@ class WebTest_Contact_InlineFieldsEditTest extends CiviSeleniumTestCase {
           break;
       }
     }
-    $this->click("css=#$block input.form-submit");
+    $this->click("css=#$block input.crm-form-submit");
     if ($valid !== 'error') {
       // Verify the form saved
       $this->waitForElementPresent("css=#$block > .crm-inline-block-content");
index acb75571608d3326c2d00a34e66e9f47de72846f..1d38f8875c9bf160d9b67fe2d05ec51656a9cda8 100644 (file)
@@ -247,10 +247,10 @@ class WebTest_Profile_MultiRecordProfileAddTest extends CiviSeleniumTestCase {
     // Justification for this instance: FIXME
     sleep(3);
     $this->click("//div[@id='custom--table-wrapper']/div/div/table/tbody/tr/td[3]/span/a[text()='Edit']");
-    $this->waitForElementPresent("xpath=//div[@class='ui-dialog-content ui-widget-content modal-dialog crm-ajax-container']/form/div[2]//div[@id='crm-profile-block']//div[@class='crm-submit-buttons']/span/input[@class='validate form-submit default crm-form-submit']");
+    $this->waitForElementPresent("xpath=//div[@class='ui-dialog-content ui-widget-content modal-dialog crm-ajax-container']/form/div[2]//div[@id='crm-profile-block']//div[@class='crm-submit-buttons']/span/input[@class='validate crm-form-submit default crm-form-submit']");
     $this->verifyText("//div[@id='custom--table-wrapper']/div/div/table/thead/tr/th[1]", preg_quote($params['textFieldLabel']));
     $this->type("//div[@id='crm-profile-block']/div/div[2]/input[@class='crm-form-text required']", $recordNew['text'].'edit');
-    $this->click("xpath=//div[@class='ui-dialog-content ui-widget-content modal-dialog crm-ajax-container']/form/div[2]//div[@id='crm-profile-block']//div[@class='crm-submit-buttons']/span/input[@class='validate form-submit default crm-form-submit']");
+    $this->click("xpath=//div[@class='ui-dialog-content ui-widget-content modal-dialog crm-ajax-container']/form/div[2]//div[@id='crm-profile-block']//div[@class='crm-submit-buttons']/span/input[@class='validate crm-form-submit default crm-form-submit']");
     $this->waitForText("//div[@id='custom--table-wrapper']/div/div/table/tbody/tr[1]/td[1]", $recordNew['text'].'edit');
     $editalertText = $this->getAlert();
     $this->assertEquals("Thank you. Your information has been saved.", $editalertText);
@@ -399,12 +399,12 @@ class WebTest_Profile_MultiRecordProfileAddTest extends CiviSeleniumTestCase {
       $this->type('email-Primary', $params['email']);
       $this->waitForElementPresent("//div[@id='crm-profile-block']//div/div[2]/select");
       $this->select("//div[@id='crm-profile-block']//div/div[2]/select",'value=1');
-      $this->click("xpath=//div[@id='crm-profile-block']//div[@class='crm-submit-buttons']/span/input[@class='validate form-submit default crm-form-submit']");
+      $this->click("xpath=//div[@id='crm-profile-block']//div[@class='crm-submit-buttons']/span/input[@class='validate crm-form-submit default crm-form-submit']");
     }
     else {
       $this->waitForElementPresent("//div[@id='crm-profile-block']//div/div[2]/select");
       $this->select("//div[@id='crm-profile-block']//div/div[2]/select",'value=1');
-      $this->click("xpath=//div[@class='ui-dialog-content ui-widget-content modal-dialog crm-ajax-container']/form/div[2]//div[@id='crm-profile-block']//div[@class='crm-submit-buttons']/span/input[@class='validate form-submit default crm-form-submit']");
+      $this->click("xpath=//div[@class='ui-dialog-content ui-widget-content modal-dialog crm-ajax-container']/form/div[2]//div[@id='crm-profile-block']//div[@class='crm-submit-buttons']/span/input[@class='validate crm-form-submit default crm-form-submit']");
     }
     return $params;
   }