[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/media/com_fields/js/ -> admin-field-changecontext-es5.js (source)

   1  (function () {
   2    'use strict';
   3  
   4    Joomla.fieldsChangeContext = function (context) {
   5      var regex = /([?;&])context[^&;]*[;&]?/;
   6      var url = window.location.href;
   7      var query = url.replace(regex, '$1').replace(/&$/, ''); // eslint-disable-next-line
   8  
   9      window.location.href = (query.length > 2 ? query + '&' : '?') + (context ? 'context=' + context : '');
  10    };
  11  
  12  })();


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer