b0y-101 Mini Shell


Current Path : E:/www2/risk/media/com_fields/js/
File Upload :
Current File : E:/www2/risk/media/com_fields/js/admin-field-changecontext-es5.js

(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 : '');
  };

})();

Copyright © 2019 by b0y-101