*
* @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);
$('.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));