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
Ext.define('ProtoManagement.model.studyprotocol.Protocol', { | |
extend: 'ProtoManagement.model.Base', | |
requires: [ | |
'Ext.data.validator.Presence', | |
'ProtoManagement.model.StudySection', | |
'ProtoManagement.model.studyprotocol.Comment', | |
'ProtoManagement.model.studyprotocol.CurrentRevision', | |
'ProtoManagement.model.studyprotocol.Revision', | |
'ProtoManagement.model.studyprotocol.StudyCode', |
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
/** | |
* Overrides for Ext.data.Model | |
*/ | |
Ext.define('overrides.data.Model', { | |
override: 'Ext.data.Model', | |
privates: { | |
/** | |
* Override that adds support to check associations | |
*/ |
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
/** | |
* Overrides for Ext.data.writer.Writer | |
*/ | |
Ext.define('overrides.data.writer.Writer', { | |
override: 'Ext.data.writer.Writer', | |
/** | |
* Override that allows the 'serialize' option to be honored if it is passed | |
* in the allDataOptions or partialDataOptions configs of a writer's config. | |
* JIRA: EXTJS-17166 |
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
Ext.define('overrides.data.Reader.Json', { | |
override: 'Ext.data.reader.Json', | |
/** | |
* Override that makes sure to first delete the existing store so that keyless associations | |
* can be reloaded when their parent record is reloaded. | |
* JIRA: EXTJS-21175 | |
*/ | |
readAssociated: function(record, data, readOptions) { | |
var roles = record.associations, |
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
/** | |
* Overrides for Ext.data.schema.Role | |
*/ | |
Ext.define('overrides.data.schema.Role', { | |
override: 'Ext.data.schema.Role', | |
/** | |
* The default field name that gets updated with the current time when | |
* an associated record changes. This can be changed by configuring this | |
* on the record that has the 'useAssociationEditPropagation' config set to 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
Ext.define(null, { | |
override: 'Ext.form.field.Text', | |
/** | |
* Override that makes sure to display the emptyText | |
* and adds the padding and margin of the inputEl | |
*/ | |
autoSize: function () { | |
var me = this, | |
triggers, triggerId, triggerWidth, inputEl, width, value; |
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
Ext.define(null, { | |
override: 'Ext.form.field.ComboBox', | |
/** | |
* Override that fixes a few things when calculating the min width of a combo's input field. | |
* | |
* First, if a display field is not used but instead a displayTpl, then this override handles that | |
* Also includes the 'emptyText' in case it is longer than the currently selected text | |
*/ | |
getGrowWidth: function() { |