[Vtigercrm-developers] Extend jQuery.Class("Vtiger_Detail_Js"

Uma S uma.s at vtiger.com
Mon Nov 17 05:28:38 GMT 2014


Hi,

For example on extending jQuery classes.

You can refer to Detail.js
(layouts/vlayoutmodules/Contacts/resources/Detail.js) of contacts module.
Where we are extending Vtiger Detail.js class. where in
registerRecordPreSaveEvent() api is written specific to contacts module.

To use parent class common api's calling this._super() api
in registerEvents api() of class.

On Sun, Nov 16, 2014 at 8:56 PM, Conrado Maggi <comaggi at gmail.com> wrote:

> Hello,
>
> I'm trying to extend a Detail Js method from the custom module. I need to
> add a new method for contact module with out hacking the Contacts Details Js
>
> Is there a way to extend the Detail JS from a header script?
>
> Thanks,
> Conrado
>
> _______________________________________________
> http://www.vtiger.com/
>



-- 
With
Best Regards
Uma.S
Vtiger Team
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20141117/a54be80b/attachment.html>


More information about the vtigercrm-developers mailing list