From 66cae70584f43f4d98a9a08b686487f9a0353d00 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 29 Oct 2014 15:25:16 +1300 Subject: [PATCH] more whitespace -remove trailing spaces --- js/jquery/jquery.crmasmselect.js | 138 ++++++------- sql/civicrm_upgradedb_v1.2_v1.3_40.mysql | 134 ++++++------- sql/civicrm_upgradedb_v1.2_v1.3_41.mysql | 144 +++++++------- sql/civicrm_upgradedb_v1.3_v1.4_40.mysql | 72 +++---- sql/civicrm_upgradedb_v1.3_v1.4_41.mysql | 64 +++--- sql/civicrm_upgradedb_v1.4_v1.5_40.mysql | 184 +++++++++--------- sql/civicrm_upgradedb_v1.4_v1.5_41.mysql | 184 +++++++++--------- sql/civicrm_upgradedb_v1.5_v1.6_40.mysql | 132 ++++++------- sql/civicrm_upgradedb_v1.5_v1.6_41.mysql | 124 ++++++------ sql/civicrm_upgradedb_v1.6_v1.7_40.mysql | 50 ++--- sql/civicrm_upgradedb_v1.8_v1.9_41.mysql | 48 ++--- .../CRM/Admin/Page/Extensions/AddNew.tpl | 2 +- templates/CRM/Badge/Form/Layout.js | 2 +- templates/CRM/Badge/Form/Layout.tpl | 6 +- .../Page/Petition/SocialNetwork.drupal | 40 ++-- templates/CRM/Case/Form/CaseView.tpl | 4 +- .../Edit/Address/country_state_province.tpl | 2 +- .../Event/Form/ParticipantFeeSelection.tpl | 12 +- tests/fixtures/contacts.yaml | 144 +++++++------- .../CRM/Core/BAO/RecurringEntityTest.php | 32 +-- .../Contribute/UpdateContributionTest.php | 2 +- tools/scripts/release-testing/upgrader.sh.txt | 20 +- tools/templates/CRM/Auction/Form/Auction.tpl | 12 +- tools/templates/CRM/Auction/Page/Item.tpl | 84 ++++---- xml/schema/Case/CaseContact.xml | 2 +- xml/schema/Core/RecurringEntity.xml | 2 +- xml/templates/case_sample.tpl | 2 +- xml/templates/civicrm_data.tpl | 4 +- .../contribution_invoice_receipt_subject.tpl | 2 +- .../membership_offline_receipt_html.tpl | 2 +- .../membership_online_receipt_html.tpl | 2 +- .../participant_confirm_html.tpl | 2 +- ...sive Design Newsletter - Single Column.tpl | 12 +- ...ponsive Design Newsletter - Two Column.tpl | 4 +- 34 files changed, 837 insertions(+), 833 deletions(-) diff --git a/js/jquery/jquery.crmasmselect.js b/js/jquery/jquery.crmasmselect.js index 49b93e1239..609b899611 100644 --- a/js/jquery/jquery.crmasmselect.js +++ b/js/jquery/jquery.crmasmselect.js @@ -71,13 +71,13 @@ .attr('id', options.listClass + index); $container = $("
") - .addClass(options.containerClass) - .attr('id', options.containerClass + index); + .addClass(options.containerClass) + .attr('id', options.containerClass + index); buildSelect(); $select.change(selectChangeEvent) - .click(selectClickEvent); + .click(selectClickEvent); $original.change(originalChangeEvent) .wrap($container).before($select).before($ol); @@ -102,31 +102,31 @@ $(this).children("li").each(function(n) { - $option = $('#' + $(this).attr('rel')); + $option = $('#' + $(this).attr('rel')); if($(this).is(".ui-sortable-helper")) { - updatedOptionId = $option.attr('id'); + updatedOptionId = $option.attr('id'); return; } - $original.append($option); - }); + $original.append($option); + }); - if(updatedOptionId) triggerOriginalChange(updatedOptionId, 'sort'); + if(updatedOptionId) triggerOriginalChange(updatedOptionId, 'sort'); } - }).addClass(options.listSortableClass); + }).addClass(options.listSortableClass); } function selectChangeEvent(e) { - + // an item has been selected on the regular select we created // check to make sure it's not an IE screwup, and add it to the list if($.browser.msie && $.browser.version < 7 && !ieClick) return; - var id = $(this).children("option:selected").slice(0,1).attr('rel'); - addListItem(id); - ieClick = false; + var id = $(this).children("option:selected").slice(0,1).attr('rel'); + addListItem(id); + ieClick = false; triggerOriginalChange(id, 'add'); // for use by user-defined callbacks } @@ -136,7 +136,7 @@ // making sure a click preceded the change() event reduces the chance // if unintended items being added. there may be a better solution? - ieClick = true; + ieClick = true; } function originalChangeEvent(e) { @@ -145,8 +145,8 @@ // on the original // used only by buildSelect() - if(disabled == undefined) var disabled = false; + if(disabled == undefined) var disabled = false; - var $O = $('#' + optionId); + var $O = $('#' + optionId); var $option = $("") .val($O.val()) .attr('rel', optionId) .addClass(optionClasses); - if(disabled) disableSelectOption($option); + if(disabled) disableSelectOption($option); - $select.append($option); + $select.append($option); } function selectFirstItem() { @@ -244,7 +244,7 @@ // add a new item to the html list - var $O = $('#' + optionId); + var $O = $('#' + optionId); if(!$O) return; // this is the first item, selectLabel @@ -252,14 +252,14 @@ .attr("href", "#") .addClass(options.removeClass) .prepend(options.removeLabel) - .click(function() { - dropListItem($(this).parent('li').attr('rel')); - return false; - }); + .click(function() { + dropListItem($(this).parent('li').attr('rel')); + return false; + }); var $itemLabel = $("") .addClass(options.listItemLabelClass) - .html($O.html()); + .html($O.html()); var $item = $("
  • ") .attr('rel', optionId) @@ -275,25 +275,25 @@ } if(options.addItemTarget == 'top' && !buildingSelect) { - $ol.prepend($item); - if(options.sortable) $original.prepend($O); + $ol.prepend($item); + if(options.sortable) $original.prepend($O); } else { - $ol.append($item); - if(options.sortable) $original.append($O); + $ol.append($item); + if(options.sortable) $original.append($O); } - addListItemShow($item); + addListItemShow($item); disableSelectOption($("[rel=" + optionId + "]", $select)); if(!buildingSelect) { - setHighlight($item, options.highlightAddedLabel); + setHighlight($item, options.highlightAddedLabel); selectFirstItem(); - if(options.sortable) $ol.sortable("refresh"); + if(options.sortable) $ol.sortable("refresh"); } - + if(options.respectParents) { - + if($O.hasClass('child')) { parentName = $O.attr('class').split('parent-')[1]; parentName = parentName.split(' ')[0]; @@ -312,15 +312,15 @@ $item.animate({ opacity: "show", height: "show" - }, 100, "swing", function() { + }, 100, "swing", function() { $item.animate({ height: "+=2px" }, 50, "swing", function() { $item.animate({ height: "-=2px" - }, 25, "swing"); - }); - }); + }, 25, "swing"); + }); + }); } else { $item.show(); } @@ -330,19 +330,19 @@ // remove an item from the html list - if(highlightItem == undefined) var highlightItem = true; - var $O = $('#' + optionId); + if(highlightItem == undefined) var highlightItem = true; + var $O = $('#' + optionId); $O.prop('selected', false); $item = $ol.children("li[rel=" + optionId + "]"); - dropListItemHide($item); + dropListItemHide($item); enableSelectOption($("[rel=" + optionId + "]", options.removeWhenAdded ? $selectRemoved : $select)); - if(highlightItem) setHighlight($item, options.highlightRemovedLabel); + if(highlightItem) setHighlight($item, options.highlightRemovedLabel); + + triggerOriginalChange(optionId, 'drop'); - triggerOriginalChange(optionId, 'drop'); - } function dropListItemHide($item) { @@ -363,13 +363,13 @@ }, 50, "swing", function() { $prevItem.animate({ height: "+=2px" - }, 100, "swing"); - }); - $item.remove(); - }); - + }, 100, "swing"); + }); + $item.remove(); + }); + } else { - $item.remove(); + $item.remove(); } } @@ -379,7 +379,7 @@ // directly after the