[ Index ]

PHP Cross Reference of vtigercrm-6.1.0

title

Body

[close]

/layouts/vlayout/modules/Settings/Vtiger/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  jQuery.Class("Settings_Vtiger_Detail_Js",{},{
  11      detailViewForm : false,
  12  
  13      /**
  14       * Function which will give the detail view form
  15       * @return : jQuery element
  16       */
  17      getForm : function() {
  18          if(this.detailViewForm == false) {
  19              this.detailViewForm = jQuery('#detailView');
  20          }
  21          return this.detailViewForm;
  22      },
  23  
  24      /**
  25       * Function to register form for validation
  26       */
  27      registerFormForValidation : function(){
  28          var detailViewForm = this.getForm();
  29          detailViewForm.validationEngine(app.validationEngineOptions);
  30      },
  31  
  32      /**
  33       * Function which will handle the registrations for the elements
  34       */
  35      registerEvents : function() {
  36          this.registerFormForValidation();
  37      }
  38  });


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