<div dir="ltr">Hi,<div><br></div><div>For example on extending jQuery classes.</div><div><br></div><div>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.</div><div><br></div><div>To use parent class common api's calling this._super() api in registerEvents api() of class.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Nov 16, 2014 at 8:56 PM, Conrado Maggi <span dir="ltr"><<a href="mailto:comaggi@gmail.com" target="_blank">comaggi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>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</div><div><br></div><div>Is there a way to extend the Detail JS from a header script?</div><div><br></div><div>Thanks,</div><div>Conrado</div></div>
<br>_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">With<br>Best Regards<br>Uma.S<br><div>Vtiger Team</div></div></div>
</div>