[Vtigercrm-developers] open pop up from list view

Conrado Maggi comaggi at gmail.com
Sat Aug 22 13:55:20 GMT 2015


Hi Simone,

Maybe you need to add prevent default to your on click event. That TR has
an event to open the detail view of the module

Regards


El sábado, 22 de agosto de 2015, Simone Travaglini <
simonetravaglini at gmail.com> escribió:

> 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/82a90a11/attachment.html>


More information about the vtigercrm-developers mailing list