How do I get url via javascript ?

Hi,

I try to get by this code but Sugar throw error "cannot render view please contact technical support".

How to disable sub panel row actions conditionally based on parent model?   I copy from this issue.

Code which I comment makes this error.

in /custom/clients/base/fields/phone/phone.js

({
user_id: "NOTINIT",
plugins:['EllipsisInline'],
direction:'ltr',
initialize:function(options){
        var serverInfo=app.metadata.getServerInfo();
        //this.parentModule=this.context.parent.get('model').module;
        //this.parentCollection = this.context.parent.get('collection');
        //this.parentModel=this.context.parent.get('model');
        this.user_id = app.user.id;
        this.skypeEnabled=serverInfo.system_skypeout_on?true:false;
        this._super('initialize',[options]);
},
...
})

Sugar 7.6 Ent

Thanks,

M