Example #1
0
 public function getHeaderScripts(Vtiger_Request $request)
 {
     $headerScriptInstances = parent::getHeaderScripts($request);
     $jsFileNames = array('~libraries/jquery/jquery.cycle.min.js');
     $jsScriptInstances = $this->checkAndConvertJsScripts($jsFileNames);
     $headerScriptInstances = array_merge($headerScriptInstances, $jsScriptInstances);
     return $headerScriptInstances;
 }
Example #2
0
 /**
  * Function to get the list of Script models to be included
  * @param Vtiger_Request $request
  * @return <Array> - List of Vtiger_JsScript_Model instances
  */
 public function getHeaderScripts(Vtiger_Request $request)
 {
     $headerScriptInstances = parent::getHeaderScripts($request);
     $moduleName = $request->getModule();
     $jsFileNames = array('~/libraries/jquery/flot/jquery.flot.min.js', '~/libraries/jquery/flot/jquery.flot.resize.js', '~/libraries/jquery/flot/jquery.flot.stack.min.js');
     $jsScriptInstances = $this->checkAndConvertJsScripts($jsFileNames);
     $headerScriptInstances = array_merge($headerScriptInstances, $jsScriptInstances);
     return $headerScriptInstances;
 }
Example #3
0
 /**
  * Function to get the list of Script models to be included
  * @param Vtiger_Request $request
  * @return <Array> - List of Vtiger_JsScript_Model instances
  */
 public function getHeaderScripts(Vtiger_Request $request)
 {
     $headerScriptInstances = parent::getHeaderScripts($request);
     $moduleName = $request->getModule();
     $jsFileNames = array('modules.Vtiger.resources.List', "modules.{$moduleName}.resources.List", 'modules.CustomView.resources.CustomView', "modules.{$moduleName}.resources.CustomView", "modules.Emails.resources.MassEdit");
     $jsScriptInstances = $this->checkAndConvertJsScripts($jsFileNames);
     $headerScriptInstances = array_merge($headerScriptInstances, $jsScriptInstances);
     return $headerScriptInstances;
 }
Example #4
0
 public function getHeaderScripts(Vtiger_Request $request)
 {
     $headerScriptInstances = parent::getHeaderScripts($request);
     $moduleName = $request->getModule();
     $moduleDetailFile = 'modules.' . $moduleName . '.resources.Detail';
     $moduleRelatedListFile = 'modules.' . $moduleName . '.resources.RelatedList';
     unset($headerScriptInstances[$moduleDetailFile]);
     unset($headerScriptInstances[$moduleRelatedListFile]);
     $jsFileNames = array('~libraries/jquery/jquery.cycle.min.js', 'modules.PriceBooks.resources.Detail', 'modules.PriceBooks.resources.RelatedList');
     $jsFileNames[] = $moduleDetailFile;
     $jsFileNames[] = $moduleRelatedListFile;
     $jsScriptInstances = $this->checkAndConvertJsScripts($jsFileNames);
     $headerScriptInstances = array_merge($headerScriptInstances, $jsScriptInstances);
     return $headerScriptInstances;
 }
Example #5
0
 /**
  * Function to get the list of Script models to be included
  * @param Vtiger_Request $request
  * @return <Array> - List of Vtiger_JsScript_Model instances
  */
 function getHeaderScripts(Vtiger_Request $request)
 {
     $headerScriptInstances = parent::getHeaderScripts($request);
     $moduleName = $request->getModule();
     //Added to remove the module specific js, as they depend on inventory files
     $modulePopUpFile = 'modules.' . $moduleName . '.resources.Popup';
     $moduleEditFile = 'modules.' . $moduleName . '.resources.Edit';
     $moduleDetailFile = 'modules.' . $moduleName . '.resources.Detail';
     unset($headerScriptInstances[$modulePopUpFile]);
     unset($headerScriptInstances[$moduleEditFile]);
     unset($headerScriptInstances[$moduleDetailFile]);
     $jsFileNames = array('modules.Inventory.resources.Popup', 'modules.Inventory.resources.Detail', 'modules.Inventory.resources.Edit', "modules.{$moduleName}.resources.Detail");
     $jsFileNames[] = $moduleEditFile;
     $jsFileNames[] = $modulePopUpFile;
     $jsScriptInstances = $this->checkAndConvertJsScripts($jsFileNames);
     $headerScriptInstances = array_merge($headerScriptInstances, $jsScriptInstances);
     return $headerScriptInstances;
 }
 public function getHeaderScripts(Vtiger_Request $request)
 {
     $headerScriptInstances = parent::getHeaderScripts($request);
     $moduleName = $request->getModule();
     $moduleDetailFile = 'modules.' . $moduleName . '.resources.PreferenceDetail';
     unset($headerScriptInstances[$moduleDetailFile]);
     $jsFileNames = array("modules.Users.resources.Detail", 'modules.' . $moduleName . '.resources.PreferenceDetail', 'modules.' . $moduleName . '.resources.PreferenceEdit');
     $jsScriptInstances = $this->checkAndConvertJsScripts($jsFileNames);
     $headerScriptInstances = array_merge($headerScriptInstances, $jsScriptInstances);
     return $headerScriptInstances;
 }