Jump to content

Recommended Posts

Posted

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)

Posted

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 */

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...