Jump to content

Why Adding To Script Gives Ajax Error?


Frederick

Recommended Posts

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...