WIP multitabs: Use specific id for each crm view

This commit is contained in:
Hadi Nategh 2020-09-28 15:46:04 +02:00
parent cdbc5e3a71
commit 028ff4edcb
3 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@ class addressbook_hooks
{
display_sidebox($appname, lang('Contact data'), array(
array(
'text' => '<div id="addressbook_view_sidebox"/>',
'text' => '<div id="addressbook_'.$_GET['contact_id'].'_view_sidebox"/>',
'no_lang' => true,
'link' => false,
'icon' => false,

View File

@ -2960,7 +2960,7 @@ class addressbook_ui extends addressbook_bo
// Load CRM code
Framework::includeJS('.','CRM','addressbook');
$content['view_sidebox'] = 'addressbook_'.$contact_id.'_view_sidebox';
$this->tmpl->exec('addressbook.addressbook_ui.view',$content,$sel_options,$readonlys,array(
'id' => $content['id'],
'index' => $content['index'],

View File

@ -3,7 +3,7 @@
<!-- $Id$ -->
<overlay>
<template id="addressbook.view" template="" lang="" group="0" version="1.9.001">
<grid class="addressbook_view" parent_node="addressbook_view_sidebox" width="100%">
<grid class="addressbook_view" parent_node="@view_sidebox" width="100%">
<columns>
<column width="70"/>
<column/>