- md5
- 192783b16e643aacce7cf95c645e9c3b
- sha1
- 00a3b288bbbfbb1c654867df6f45f24e1fa5abfc
- sha256
- 5e9be2f97de1fbd6edeb7ac110290bf3a61fd8f365879512216f3e1be72518b6
function sendPermissions(e){var t=document.getElementById("icon_"+this.id);t.removeAttribute("class"),t.setAttribute("style","background: url(../media/system/images/modal/spinner.gif); display: inline-block; width: 16px; height: 16px");var r="not",a=getUrlParam("component"),s=getUrlParam("extension"),i=getUrlParam("option"),n=getUrlParam("view"),o=a,l=this.value;"com_config"==i&&0==a&&0==s?r="root.1":0==s&&"component"==n?r=a:0!=s&&0!=n?(r=s+"."+n+"."+getUrlParam("id"),o=document.getElementById("jform_title").value):0==s&&0!=n&&(r=i+"."+n+"."+getUrlParam("id"),o=document.getElementById("jform_title").value);var m=this.id.replace("jform_rules_",""),c=m.lastIndexOf("_"),u=m.substring(0,c),d=m.substring(c+1),g="&comp="+r+"&action="+u+"&rule="+d+"&value="+l+"&title="+o,p="index.php?option=com_config&task=config.store&format=raw"+g;jQuery.ajax({type:"GET",url:p,datatype:"JSON"}).success(function(r){var a=e.target,s=JSON.parse(r),i=JSON.parse(s.data);if(1==i.result)t.removeAttribute("style"),t.setAttribute("class","icon-save"),jQuery(a).parents().next("td").find("span").removeClass().addClass(i["class"]).html(i.text);else{var n={error:[s.message]};Joomla.renderMessages(n),t.removeAttribute("style"),t.setAttribute("class","icon-cancel")}}).fail(function(){var e={error:[Joomla.JText._("JLIB_RULES_REQUEST_FAILURE")]};Joomla.renderMessages(e),t.removeAttribute("style"),t.setAttribute("class","icon-cancel")})}function getUrlParam(e){for(var t=window.location.search.substring(1),r=t.split("&"),a=0;a<r.length;a++){var s=r[a].split("=");if(s[0]==e)return s[1]}return!1}
The same content is in 2 releases, Joomla 3.6.0-beta1 to 3.6.0-beta2. See them all, or every version of this file.