From: Tim Otten Date: Wed, 25 Feb 2015 01:26:08 +0000 (-0800) Subject: Merge remote-tracking branch 'origin/4.5' into 4.5-master-2015-02-24-17-24-05 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=4c12c9b771bde931077f56685b632bd34504b238;p=civicrm-core.git Merge remote-tracking branch 'origin/4.5' into 4.5-master-2015-02-24-17-24-05 Conflicts: CRM/Batch/Form/Entry.php CRM/Utils/PDF/Utils.php --- 4c12c9b771bde931077f56685b632bd34504b238 diff --cc CRM/Batch/Form/Entry.php index e058d7fdba,185c5421a7..ec48e66409 mode 100755,100644..100755 --- a/CRM/Batch/Form/Entry.php +++ b/CRM/Batch/Form/Entry.php diff --cc CRM/Utils/PDF/Utils.php index d6ad7bef57,52a17dcd2c..90f36cecdf --- a/CRM/Utils/PDF/Utils.php +++ b/CRM/Utils/PDF/Utils.php @@@ -189,9 -178,12 +189,12 @@@ class CRM_Utils_PDF_Utils * * @return string */ - static function _html2pdf_dompdf($paper_size, $orientation, $html, $output, $fileName) { + public static function _html2pdf_dompdf($paper_size, $orientation, $html, $output, $fileName) { - require_once 'packages/dompdf/dompdf_config.inc.php'; - spl_autoload_register('DOMPDF_autoload'); + // CRM-12165 - Remote file support required for image handling. + define("DOMPDF_ENABLE_REMOTE", true); + define('DOMPDF_ENABLE_AUTOLOAD', false); + require_once 'packages/vendor/dompdf/dompdf/dompdf_config.inc.php'; + $dompdf = new DOMPDF(); $dompdf->set_paper($paper_size, $orientation); $dompdf->load_html($html); diff --cc templates/CRM/Batch/Form/Entry.tpl index 2eeb718401,905851fdaf..1d3617829a mode 100755,100644..100755 --- a/templates/CRM/Batch/Form/Entry.tpl +++ b/templates/CRM/Batch/Form/Entry.tpl @@@ -125,25 -112,19 +125,33 @@@ CRM.$(function($) $('.selector-rows').change(function () { var options = { 'url': {/literal}"{crmURL p='civicrm/ajax/batch' h=0}"{literal} - }; - + }; $($form).ajaxSubmit(options); }); + + cj('input[id*="primary_contact_"]').change(function() { + var temp = this.id.split('_'); + var ROWID = temp[3]; + if (cj(this).val()) { + updateContactInfo(ROWID,'primary_'); + } + }); + + cj('select[id^="option_type_"]').each(function () { + if (cj(this).val() == 1) { + cj(this).attr('disabled', true); + cj(this).hide(); + } + }); + cj('input[id*="primary_contact_id_"]').change(function() { + var temp = this.id.split('_'); + var ROWID = temp[3]; + if (cj(this).val()) { + updateContactInfo(ROWID,'primary_'); + } + }); + $('#crm-container').on('keyup change', '*.selector-rows', function () { // validate rows checkColumns($(this));