$attributes = array('readonly'=> true);
- $this->add('text', 'image_1', ts('Image (top right)'),
+ $this->add('text', 'image_1', ts('Image (top left)'),
$attributes + CRM_Core_DAO::getAttribute('CRM_Core_DAO_PrintLabel', 'title'));
$this->add('text', 'width_image_1', ts('Width'), array('size' => 6));
$this->add('text', 'height_image_1', ts('Height'), array('size' => 6));
- $this->add('text', 'image_2', ts('Image (top left)'),
+ $this->add('text', 'image_2', ts('Image (top right)'),
$attributes + CRM_Core_DAO::getAttribute('CRM_Core_DAO_PrintLabel', 'title'));
$this->add('text', 'width_image_2', ts('Width'), array('size' => 6));
$this->add('text', 'height_image_2', ts('Height'), array('size' => 6));
});
$('.clear-image').click(function(){
- $('#' + $(this).attr('imgname')).val('');
+ var imgName = $(this).attr('imgname');
+ $('#' + imgName).val('');
+ $('#width_' + imgName).val('');
+ $('#height_' + imgName).val('');
return false;
});
});