[Vtigercrm-developers] open pop up from list view

Simone Travaglini simonetravaglini at gmail.com
Mon Aug 24 10:04:25 GMT 2015


unfurtunately is not working...

any other suggestion? Vtiger team?

2015-08-24 11:47 GMT+02:00 Conrado Maggi <comaggi at gmail.com>:

> TRy this.
>
> I'vent try it so I'm not sure if its works
>
> <a href="#" onclick=""event.preventDefault(); 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> 
>
> Regards,
>
> On Mon, Aug 24, 2015 at 11:30 AM, Simone Travaglini <
> simonetravaglini at gmail.com> wrote:
>
>> Hi conrado,
>> can you give me a more precise detail on your idea? Where to apply
>> prevent default?
>>
>> 2015-08-22 15:55 GMT+02:00 Conrado Maggi <comaggi at gmail.com>:
>>
>>> 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!
>>>>
>>>
>>> _______________________________________________
>>> http://www.vtiger.com/
>>>
>>
>>
>>
>> --
>> Simone Travaglini
>> 328 5499846
>> Linkedin: Simone Travaglini
>>
>>
>> Rispetta l'ambiente: non stampare questa mail se non ti è veramente
>> necessario!
>>
>> _______________________________________________
>> http://www.vtiger.com/
>>
>
>
> _______________________________________________
> http://www.vtiger.com/
>



-- 
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/20150824/d2d1b928/attachment.html>


More information about the vtigercrm-developers mailing list