This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
array( | |
'type'=>'rowaction', | |
'event'=>'button:check_button:click', | |
'name'=>'check_button', | |
'label'=>'LBL_CHECK_BUTTON_LABEL', | |
'acl_action'=>'view', | |
), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$mod_strings['LBL_FILTER_ACCOUNT_TEMPLATE']='Accounts without Current Account'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<php | |
/* | |
* Enabling Audit for module | |
* Ajay Kumar | |
* Path : /crm//custom/Extension/modules/Project/Ext/Vardefs/enableAudit.php | |
*/ | |
$dictionary['Project']['audited'] = true; | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
/*Registering Button action for Keyboard shortcut | |
* Ajay Kumar | |
* custom/modules/Accounts/clients/base/views/record/reord.js | |
*/ | |
extendsFrom: 'RecordView', | |
initialize: function(options) { | |
this._super('initialize', [options]); | |
this.events = _.extend({}, this.events, { | |
'click a[name=test_button]': '_testAlert', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*custom/modules/Accounts/clients/base/layouts/record/record.js | |
* Ajay Kumar | |
*/ | |
({ | |
plugins: ['ShortcutSession'], | |
shortcuts: ['Sidebar:Toggle', 'Record:Edit', 'Record:Delete', 'Record:Save', 'Record:Cancel', 'Record:Previous', 'Record:Next', 'Record:Favorite', 'Record:Follow', 'Record:Copy', 'Record:Action:More', 'Record:Test'] | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Script to take autodump of directories | |
#Written by Ajay Kumar | |
#Dated: 07 July 2016 | |
BACKUPDIR="/home/restore/CRM_Backup/" | |
TODAY=`date +"%A"` | |
#enter directories to be backedup here | |
FILES=( '/var/www/html/sugarhome' ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/sh | |
echo 3 > /proc/sys/vm/drop_caches | |
//Execute this file in cron with difference (based on RAM size) | |
In terminal | |
>crontab -e | |
//then add the below with correct path,we have given 45 mins as diff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
extendsFrom: 'RecordView', | |
initialize: function(options) { | |
this._super('initialize', [options]); | |
this.model.addValidationTask('check_email', _.bind(this._doValidateEmail, this)); | |
}, | |
_doValidateEmail: function(fields, errors, callback) { | |
console.log("test function"); | |
_.each(this.model.get('email'), function(emailObject) { | |
if (emailObject.primary_address) { //check if primary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
extendsFrom:'RecordlistView', | |
initialize:function(options){ | |
this._super('initialize',[options]); | |
this.context.on('list:updatecurrentsize:fire',this.mass_update_currentsize,this); | |
}, | |
/** | |
* Function to mass update the current size | |
* for all selected accounts | |
* Written by: Ajay Kumar |
OlderNewer