Frederick Posted April 13, 2021 Posted April 13, 2021 I am trying to add a script to the Mainform's script property but the additional code gives an Ajax error. What part am I doing wrong? Ext.override(Ext.form.field.Checkbox, { onBlur: function() { this.displayEl.removeCls('x-form-checkbox-focus'); this.callParent(arguments); } }) Ext.form.field.Date.prototype.altFormats = "dmY|m/d/Y|n/j/Y|n/j/y|m/j/y|n/d/y|m/j/Y|n/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d|n-j|n/j"; /* Adding this line */ -- Frederick (UniGUI Complete - Professional Edition 1.90.0.1546) Quote
Frederick Posted April 13, 2021 Author Posted April 13, 2021 Thanks. Adding a semi colon after the closing bracket solved the problem. Ext.override(Ext.form.field.Checkbox, { onBlur: function() { this.displayEl.removeCls('x-form-checkbox-focus'); this.callParent(arguments); } }); /* Added semi colon here */ Ext.form.field.Date.prototype.altFormats = "dmY|m/d/Y|n/j/Y|n/j/y|m/j/y|n/d/y|m/j/Y|n/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d|n-j|n/j"; /* Adding this line */ Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.