Re: Current project context

2015-04-24 Thread Ramzi Youssefi
nope, I was wrong.. is done automatically as soon one select a project. Cool! On Fri, Apr 24, 2015 at 1:27 PM, Ramzi Youssefi wrote: > I will reply my own question in case someone needs the same. > In an Ajax request, when you give the projectid parameter a -1 then you > will get the id of the c

Re: Current project context

2015-04-24 Thread Ramzi Youssefi
I will reply my own question in case someone needs the same. In an Ajax request, when you give the projectid parameter a -1 then you will get the id of the current project where you are currently in. Cheers! On Fri, Apr 24, 2015 at 11:15 AM, Ramzi Youssefi wrote: > Hello everyone, > > I'm curre

Current project context

2015-04-24 Thread Ramzi Youssefi
Hello everyone, I'm currently developing a UI Javascript Plugin for Cloudstack and I was wondering if there is a global variable that tells me in which project I'm currently in. For example, if I list something in the ViewList, than the context will be something like this: var description = arg