[ Index ] |
PHP Cross Reference of vtigercrm-6.1.0 |
[Summary view] [Print] [Text view]
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 var Vtiger_BaseList_Js = { 11 /** 12 * Function to get the parameters for paging of records 13 * @return : string - module name 14 */ 15 getPageRecords : function(params){ 16 var aDeferred = jQuery.Deferred(); 17 18 if(typeof params == 'undefined') { 19 params = {}; 20 } 21 22 if(typeof params.module == 'undefined') { 23 params.module = app.getModuleName(); 24 } 25 26 if(typeof params.view == 'undefined') { 27 //Default we will take list ajax 28 params.view = 'ListAjax'; 29 } 30 31 if(typeof params.page == 'undefined') { 32 params.page = Vtiger_BaseList_Js.getCurrentPageNum(); 33 } 34 35 AppConnector.request(params).then( 36 function(data){ 37 aDeferred.resolve(data); 38 }, 39 40 function(textStatus, errorThrown){ 41 aDeferred.reject(textStatus, errorThrown); 42 } 43 ); 44 return aDeferred.promise(); 45 }, 46 47 getCurrentPageNum : function() { 48 return jQuery('#pageNumber').val(); 49 } 50 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:08:37 2014 | Cross-referenced by PHPXref 0.7.1 |