[ 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 Settings_Vtiger_List_Js("Settings_Workflows_List_Js",{ 11 12 triggerCreate : function(url) { 13 var selectedModule = jQuery('#moduleFilter').val(); 14 if(selectedModule.length > 0) { 15 url += '&source_module='+selectedModule 16 } 17 window.location.href = url; 18 } 19 },{ 20 21 registerFilterChangeEvent : function() { 22 var thisInstance = this; 23 jQuery('#moduleFilter').on('change',function(e){ 24 jQuery('#pageNumber').val("1"); 25 jQuery('#pageToJump').val('1'); 26 jQuery('#orderBy').val(''); 27 jQuery("#sortOrder").val(''); 28 var params = { 29 module : app.getModuleName(), 30 parent : app.getParentModuleName(), 31 sourceModule : jQuery(e.currentTarget).val() 32 } 33 //Make the select all count as empty 34 jQuery('#recordsCount').val(''); 35 //Make total number of pages as empty 36 jQuery('#totalPageCount').text(""); 37 thisInstance.getListViewRecords(params).then( 38 function(data){ 39 thisInstance.updatePagination(); 40 } 41 ); 42 }); 43 }, 44 45 /* 46 * Function to register the list view row click event 47 */ 48 registerRowClickEvent: function(){ 49 var listViewContentDiv = this.getListViewContentContainer(); 50 listViewContentDiv.on('click','.listViewEntries',function(e){ 51 var editUrl = jQuery(e.currentTarget).find('.icon-pencil').closest('a').attr('href'); 52 window.location.href = editUrl; 53 }); 54 }, 55 56 getDefaultParams : function() { 57 var pageNumber = jQuery('#pageNumber').val(); 58 var module = app.getModuleName(); 59 var parent = app.getParentModuleName(); 60 var params = { 61 'module': module, 62 'parent' : parent, 63 'page' : pageNumber, 64 'view' : "List", 65 sourceModule : jQuery('#moduleFilter').val() 66 } 67 68 return params; 69 }, 70 71 registerEvents : function() { 72 this._super(); 73 this.registerFilterChangeEvent(); 74 } 75 });
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 |