Hi Fernando

On Apr 18, 2014, at 2:40 AM, Fernando Figaroli <[email protected]> wrote:

> thanks but does not work.
> returns equal in both the email list that new email.

I guess you'll need to rely on the presence of specific DOM elements to 
identify the current page.

For example:

if ($('subjectRow'))
        // in message composition popup
else if ($$('.popup #messageContent').length)
        // in message viewer popup


Francis

> Il giorno Giovedi, 17 Aprile, 2014 19:23 CEST, Francis Lachapelle 
> <[email protected]> ha scritto:
> 
>> Hi Fernando
>> 
>> On Apr 16, 2014, at 9:42 AM, Fernando Figaroli <[email protected]> wrote:
>> 
>>> I'm writing jquery code to customize the interface.
>>> How do I know what page am I?
>>> Calendar? email? new_email?
>>> Thank you.
>> 
>> You can check the global variable named "ApplicationBaseURL", which will 
>> look like "/SOGo/so/<uid>/Calendar".
>> 
>> 
>> Francis--
>> [email protected]
>> https://inverse.ca/sogo/lists
> 
> -- 
> [email protected]
> https://inverse.ca/sogo/lists

-- 
[email protected]
https://inverse.ca/sogo/lists

Reply via email to