[ Index ]

PHP Cross Reference of vtigercrm-6.1.0

title

Body

[close]

/layouts/vlayout/modules/Products/resources/ -> Detail.js (source)

   1  /*+***********************************************************************************
   2   * The contents of this file are subject to the vtiger CRM Public License Version 1.0
   3   * ("License"); You may not use this file except in compliance with the License
   4   * The Original Code is:  vtiger CRM Open Source
   5   * The Initial Developer of the Original Code is vtiger.
   6   * Portions created by vtiger are Copyright (C) vtiger.
   7   * All Rights Reserved.
   8   *************************************************************************************/
   9  
  10  PriceBooks_Detail_Js("Products_Detail_Js",{},{
  11      
  12      /**
  13       * Function to register event for image graphics
  14       */
  15      registerEventForImageGraphics : function(){
  16          var imageContainer = jQuery('#imageContainer');
  17          imageContainer.cycle({ 
  18              fx:    'curtainX', 
  19              sync:  false, 
  20              speed:1000,
  21              timeout:20
  22           });
  23           imageContainer.find('img').on('mouseenter',function(){
  24               imageContainer.cycle('pause');
  25           }).on('mouseout',function(){
  26               imageContainer.cycle('resume');
  27           })
  28      },
  29      
  30      /**
  31       * Function to register event for select button click on pricebooks in Products related list
  32       */
  33      registerEventForSelectRecords : function(){
  34          var thisInstance = this;
  35          var detailContentsHolder = this.getContentHolder();
  36          detailContentsHolder.on('click', 'button[data-modulename="PriceBooks"]', function(e){
  37              var selectedTabElement = thisInstance.getSelectedTab();
  38              var relatedModuleName = thisInstance.getRelatedModuleName();
  39              var relatedController = new Products_RelatedList_Js(thisInstance.getRecordId(), app.getModuleName(), selectedTabElement, relatedModuleName);
  40              relatedController.showSelectRelationPopup();
  41          });
  42      },
  43      
  44      /**
  45       * Function to register events
  46       */
  47      registerEvents : function(){
  48          this._super();
  49          this.registerEventForImageGraphics();
  50      }
  51  })


Generated: Fri Nov 28 20:08:37 2014 Cross-referenced by PHPXref 0.7.1