RSS Feed/News Migrating to native JavaScript in XenForo 2.3

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
23,674
Points
823

Reputation:

So rather than clog the boosting performance thread, I'm going to drop questions here as they come up...

Let's say I have this for XF 2.2:
JavaScript:

Code:
this.$target.nextAll('input[name="payload"]').val(JSON.stringify(payload));
this.$target.closest('form').find('.formSubmitRow button').removeClass('is-disabled').prop("disabled", false);
$('#webauthn_verify .status').html($('#webauthn_verify').data('verified'));

And then this for XF 2.3:
JavaScript:

this.$target[0].parentElement.querySelector('input[name="payload"]').value =...

Read more

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