we need something like

(function (D) {
  var beforeSerialize = D.ajax.prototype.beforeSerialize;
  D.ajax.prototype.beforeSerialize = function (element, options) {
    beforeSerialize.call(this, element, options);
    options.data['ajax_page_state[jQuery]'] = D.settings.ajaxPageState.jQuery;
    options.data['ajax_page_state[jQueryUI]'] = D.settings.ajaxPageState.jQueryUI;
  }
})(Drupal);

Comments

ericduran’s picture

This is the same as #1954930: Loads the frontend version on ajax calls on backend pages.

How is the Ajax request being made?

I see it being sent to the server.

ericduran’s picture

Status: Active » Closed (duplicate)

@Punk_UnDeaD I'm going to close this one because we're all talking on the other issue.

No worries I've been sure to credit you on the commit :)