Commit 89408084 authored by jaapjansma's avatar jaapjansma

Fixed issue with dashlet opening in full screen.

parent e191c0e9
......@@ -2,6 +2,7 @@
* Fixed issue with cloning data processors.
* Added Manage Case Link field.
* Fixed issue with dashlet opening in full screen.
# Version 1.7.0
......
......@@ -28,6 +28,8 @@ class CRM_DataprocessorDashlet_Page_Dashlet extends CRM_Core_Page {
*/
private $dataProcessorClass;
protected $context;
/**
* Pre Process the results
*
......@@ -36,10 +38,12 @@ class CRM_DataprocessorDashlet_Page_Dashlet extends CRM_Core_Page {
protected function preProcess() {
$this->dataProcessorName = CRM_Utils_Request::retrieve('data_processor', 'String');
$this->context = CRM_Utils_Request::retrieve('context', 'String');
$this->dataProcessor = civicrm_api3('DataProcessor', 'getsingle', array('name' => $this->dataProcessorName));
$this->dataProcessorClass = CRM_Dataprocessor_BAO_DataProcessor::dataProcessorToClass($this->dataProcessor);
$this->assign('dataProcessorName', $this->dataProcessorName);
$this->assign('context', $this->context);
}
/**
......
{include file="CRM/DataprocessorSearch/Form/Search.tpl"}
{literal}
<style type="text/css">
.CRM_DataprocessorDashlet_Form_Dashlet.crm-search-form .element-right {
float: right;
}
</style>
{/literal}
<div id="dataprocessorDashlet_{$dataProcessorName}"></div>
<div id="dataprocessorDashlet_{$dataProcessorName}_{$context}"></div>
{literal}
<script type="text/javascript">
(function($) {
var target = "#dataprocessorDashlet_{/literal}{$dataProcessorName}{literal}";
var target = "#dataprocessorDashlet_{/literal}{$dataProcessorName}_{$context}{literal}";
var form = CRM.loadForm(CRM.url('civicrm/dataprocessor/form/dashlet', {"reset": 1, "data_processor": "{/literal}{$dataProcessorName}{literal}"}), {
"target": target,
"dialog": false,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment