[Vtigercrm-developers] open pop up from list view
Simone Travaglini
simonetravaglini at gmail.com
Sat Aug 22 07:51:44 GMT 2015
Hi to all,
I need to open a pop with record summary from list view, but:
1 - POP UP OPENED BUT ALSO CHANGE MAIN PAGE
In file Vlayout/modules/vitger/Listviewcontents.tpl,
before this block:
<a href="{$LISTVIEW_ENTRY->getFullDetailViewUrl()}"><i
title="{vtranslate('LBL_SHOW_COMPLETE_DETAILS', $MODULE)}"
class="icon-th-list alignMiddle"></i></a>
{if $IS_MODULE_EDITABLE}
<a href='{$LISTVIEW_ENTRY->getEditViewUrl()}'><i
title="{vtranslate('LBL_EDIT', $MODULE)}" class="icon-pencil
alignMiddle"></i></a>
{/if}
{if $IS_MODULE_DELETABLE}
<a class="deleteRecordButton"><i title="{vtranslate('LBL_DELETE',
$MODULE)}" class="icon-trash alignMiddle"></i></a>
{/if}
I add this line:
<a href="#"
onclick="window.open('{$LISTVIEW_ENTRY->getFullDetailViewUrl()}','{vtranslate('LBL_SHOW_COMPLETE_DETAILS',
$MODULE)}',
'width=800,height=600,scrollbars,resizable,menubar=1,location=1,toolbar=1');"
class="icon-download alignMiddle">
</a>
the icon is show correctly, if i click on icon a popup is opened correctly
but also main page is changed and point to summary view of record.
Any Ideas?
also I need to point in popup to summary view, there is a function like
getFullDetailViewUrl() for summary view?
thanks for helping! :)
--
Simone Travaglini
328 5499846
Linkedin: Simone Travaglini
Rispetta l'ambiente: non stampare questa mail se non ti è veramente
necessario!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20150822/b9a02f80/attachment.html>
More information about the vtigercrm-developers
mailing list