RSS Feed/News Form.js Disabler - Add option to NOT autofocus

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
30,613
Points
823

Reputation:

I know this might seem strange, but I have an application where the autofocus for the fields being revealed shouldn't happen. So, I'm wondering if an option could be added to the disabler?

Options in js: autofocus: true // if false, autofocus won't happen

js code:
Code:

Code:
if (this.options.autofocus)
{
    var cb = function () {
        XF.layoutChange();
        select();
    };
}
else
{
    var cb = function () {
        XF.layoutChange();
    };
}
I think that's correct and I have...

Read more

Continue reading...
 
Status
Not open for further replies.
Top