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
({ | |
/* File: ./custom/modules/Accounts/clients/base/views/record/record.js */ | |
extendsFrom: 'RecordView', | |
initialize: function(options){ | |
this._super('initialize', [options]); | |
this.model.on('data:sync:complete', this.styleType, 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
({ | |
/* File: ./custom/modules/<Module>/clients/base/views/record/record.js */ | |
extendsFrom: 'RecordView', | |
initialize: function(options){ | |
/* Check if related module has records linked to current record and meet a specific criteria (filter) | |
* You need the "link" field name from vardefs for the specific | |
* subpanel you wish to check. | |
* |
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
({ | |
/* File: ./custom/modules/<Module>/clients/base/views/record/record.js */ | |
extendsFrom: 'RecordView', | |
initialize: function(options){ | |
/* Check if related module has records linked to current record | |
* You need the "link" field name from vardefs for the specific | |
* subpanel you wish to check. | |
* |
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
({ | |
/* File: ./custom/modules/Leads/clients/base/views/record/record.js */ | |
extendsFrom: 'RecordView', | |
initialize: function(options) { | |
this._super('initialize', [options]); | |
this.model.on('data:sync:complete', this.showAlert, 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
({ | |
/* File: ./custom/clients/base/views/record/record.js */ | |
extendsFrom: 'RecordView', | |
_render: function(){ | |
var self = this; | |
this._super('_render'); | |
_.each(this.noEditFields, function(field){ |
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
({ | |
/* File: ./custom/modules/Accounts/clients/base/views/preview/preview.js */ | |
extendsFrom: 'PreviewView', | |
_renderPreview: function(model, collection, fetch, previewId){ | |
var self = this; | |
// If there are drawers there could be multiple previews, make sure we are only rendering preview for active drawer | |
if(app.drawer && !app.drawer.isActive(this.$el)){ |
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
({ | |
/* Author: Angel Magaña -- [email protected] | |
* File: ./custom/clients/base/views/conversion-stats/conversion-stats.js | |
* | |
* controller for 'Monthly Lead Conversion Stats' custom pie chart | |
*/ | |
plugins: ['Dashlet', 'Chart'], | |
className: 'conversion-stats', | |
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
({ | |
/* File: ./custom/modules/<Module>/clients/base/layouts/filter/filter.js */ | |
extendsFrom: 'FilterLayout', | |
applyFilter: function(query, dynamicFilterDef) { | |
var customFilterDef = [{'$or':[{'billing_address_city':{'$starts':query}},{'name':{'$starts':query}}]}]; | |
// TODO: getRelevantContextList needs to be refactored to handle filterpanels in drawer layouts, | |
// as it will return the global context instead of filtering a list view within the drawer context. | |
// As a result, this flag is needed to prevent filtering on the global context. |
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
({ | |
/* | |
file: ./custom/modules/Forecasts/clients/base/views/forecast-pipeline/forecast-pipeline.js | |
*/ | |
extendsFrom:"ForecastsForecastPipelineView", | |
initDashlet: function(view) { | |
this._super('initDashlet', [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
({ | |
/* Author: Angel Magaña -- [email protected] | |
* File: ./custom/modules/Opportunities/clients/base/views/record/record.js | |
* | |
* Set all fields to read-only conditionally | |
*/ | |
extendsFrom: 'RecordView', | |
_renderHtml: function(){ |