[Vtigercrm-developers] vt7 Overriding Javascript Classes

Alan Lord alanslists at gmail.com
Tue Jun 27 14:11:16 GMT 2017


I need to override the searchModuleNames functions so that I can pass 
some extra data during type-ahead search in reference fields.

This function is included in two files:

layouts/v7/modules/Vtiger/resources/Vtiger.js
and
layouts/v7/modules/Vtiger/resources/Detail.js

(The one in Detail.js I don't think actually ever gets used.)

So how do override the one in Vtiger.js?

Do I create a

/layouts/v7/modules/MyModuleName/resources/MyModuleName.js file and 
inherit from Vtiger_Index_Js?

The Detail.js override wont work because it the searchModuleNames 
function is already loaded via the registerAutoCompleteFields in Vtiger.js

Cluebat anyone?

TIA

Al



More information about the vtigercrm-developers mailing list