<div dir="ltr">Will get back on this thread - please give me sometime.</div><div class="gmail_extra"><br clear="all"><div><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><b>Connect with us on: </b><a href="http://twitter.com/vtigercrm" style="color:rgb(0,0,204)" target="_blank">Twitter</a> <b>I</b> <a href="http://www.facebook.com/pages/vtiger/226866697333578?sk=wall" style="color:rgb(0,0,204)" target="_blank">Facebook</a> <b>I</b> <a href="https://blogs.vtiger.com/" style="color:rgb(0,0,204)" target="_blank">Blog</a><b> I</b> <a href="http://wiki.vtiger.com/index.php/Main_Page" style="color:rgb(0,0,204)" target="_blank">Wiki</a> <b>I </b><a href="https://discussions.vtiger.com" style="color:rgb(0,0,204)" target="_blank">Forums </a><b>I</b> <a href="https://www.vtiger.com/" style="color:rgb(0,0,204)" target="_blank">Website</a></span></div>
<br><br><div class="gmail_quote">On Fri, Mar 28, 2014 at 7:26 PM, Alan Lord <span dir="ltr"><<a href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks Prasad,<br>
<br>
I mostly understand this but the reason I wanted to override the two app.functions() is because I have an almost total clone of List.js. and app.getModulename is called very frequently.<br>
<br>
If I understand your suggestion below, then I'd need to replace all the app.getModuleName and app.getViewName function calls.<br>
<br>
The way I've done it means that my List.js is virtually unchanged.<br>
<br>
I really don't get Javascript inheritance [ as you can probably tell ;-) ] so probably should not be doing it this way but I need a complete Vtiger_List_Js class to make the listview work...<br>
<br>
Al<div class=""><br>
<br>
<br>
On 28/03/14 13:38, Prasad wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Alan,<br>
<br>
resources/app.js has helper methods that is global to application - not<br>
sure the intent of extending it.<br>
<br>
From your example - have a wrap method seem more appropriate:<br>
<br>
jQuery.Class('GeoTools_List_<u></u>Js', {<br>
// Static functions<br>
getEmbededModuleName: function() {<br>
return jQuery('#embedModule').val();<br>
}<br>
}, {<br>
// Member functions<br>
registerGeoToolsEvents: function() {<br>
// GeoTools_List_Js.<u></u>getEmbededModuleName()<br>
}<br>
});<br>
<br>
I hope you have looked at:<br>
<a href="http://community.vtiger.com/help/vtigercrm/developers/extensions/examples/extension-module.html#resources-myrss-js" target="_blank">http://community.vtiger.com/<u></u>help/vtigercrm/developers/<u></u>extensions/examples/extension-<u></u>module.html#resources-myrss-js</a><br>
<br>
Let me know if the example is not clear or aid in your porting.<br>
</blockquote>
<br>
<br>
<br></div>
______________________________<u></u>_________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div><br></div>