This file contains hidden or 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
({ | |
/*Disabling button ,condition based or dynamically on RecordView. | |
* AjayKumar | |
* custom/modules/Accounts/clients/base/views/record/reord.js | |
*/ | |
extendsFrom:'RecordView', | |
initialize:function(options){ | |
this._super('initialize',[options]); | |
this.on('render',this.makedisableButton,this); | |
}, |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 | |
/* | |
*custom/Extension/modules/Accounts/Ext/clients/base/filters/basic/FilerAccountTemplate.php | |
* Ajay Kumar | |
*/ | |
$viewdefs['Accounts']['base']['filter']['basic']['filters'][] = array( | |
'id' => 'FilterAccountTemplate', | |
'name' => 'LBL_FILTER_ACCOUNT_TEMPLATE', | |
'filter_definition' => array( | |
'name' => array( |
This file contains hidden or 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 hidden or 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: 'RelateField', | |
initialize: function(options) { | |
this._super('initialize', [options]); | |
}, | |
getFilterOptions: function(force) { | |
if (this._filterOptions && !force) { | |
return this._filterOptions; | |
} | |
//Defining our filter definitions |
This file contains hidden or 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
({ | |
/* Disabling edit button and un link button action based on parent module field value. | |
* Ajay Kumar | |
* Path: sugar/custom/modules/Leads/clients/base/views/subpanel-list/subpanel-list.js | |
*/ | |
extendsFrom: 'SubpanelListView', | |
initialize: function(options) { | |
this._super('initialize', [options]); | |
this.on('render', this._disableActions, this); | |
}, |
This file contains hidden or 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
({ | |
/* Disabling create and link existing button action in subpanel based on parent module. | |
* Ajay Kumar | |
* Path : sugar/custom/modules/Leads/clients/base/views/panel-top/panel-top.js | |
*/ | |
extendsFrom: 'PanelTopView', | |
initialize: function(options) { | |
this._super('initialize', [options]); | |
var industryValue = this.context.parent.get('model').get("industry"); | |
var parentModule = this.context.parent.get('module'); |
OlderNewer