Frederick Posted April 13, 2021 Share 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) Link to comment Share on other sites More sharing options...
Sherzod Posted April 13, 2021 Share Posted April 13, 2021 Hello, Remember to put semicolons... Link to comment Share on other sites More sharing options...
Frederick Posted April 13, 2021 Author Share 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 */ Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now