CoreFiles by mySites.guru
admin-field-changecontext-es5.js12 lines, 376 bytes, from Joomla_4.4.13-Stable-Full_Package.zip
Raw History Compare with 4.4.12
md5
03458e41c59d8cf9bc343c7d19c97791
sha1
7fc8c5b6833c0d178c24ae098a43d3d4b20f0333
sha256
5ad5412ddc4da16816606b4a834ab5c26a90fefed04ca93cd98a14224fc4e4ad
(function () {
  'use strict';

  Joomla.fieldsChangeContext = function (context) {
    var regex = /([?;&])context[^&;]*[;&]?/;
    var url = window.location.href;
    var query = url.replace(regex, '$1').replace(/&$/, '');
    // eslint-disable-next-line
    window.location.href = (query.length > 2 ? query + '&' : '?') + (context ? 'context=' + context : '');
  };

})();

The same content is in 57 releases, Joomla 4.3.0-alpha1 to 5.0.0-alpha1. See them all, or every version of this file.