Update admin-weblinks-modal.min.js

This commit is contained in:
Tuan Pham Ngoc 2021-12-21 18:20:54 +07:00
parent 73ff2844d7
commit 5ff1fba180
1 changed files with 1 additions and 1 deletions

View File

@ -1 +1 @@
!function(){"use strict";window.jSelectWeblink=function(a,b,c,d,e,f){var h,i,g="";if(!Joomla.getOptions("xtd-weblinks"))return window.parent.jModalClose(),!1;h=Joomla.getOptions("xtd-weblinks").editor,""!==f&&(g=' hreflang="'+f+'"'),i="<a"+g+' href="'+e+'">'+b+"</a>",window.Joomla&&window.Joomla.editors&&Joomla.editors.instances&&Joomla.editors.instances.hasOwnProperty(h)?Joomla.editors.instances[h].replaceSelection(i):window.parent.jInsertEditorText(i,h),window.parent.jModalClose()},document.addEventListener("DOMContentLoaded",function(){for(var a=document.querySelectorAll(".select-link"),b=0,c=a.length;c>b;b++)a[b].addEventListener("click",function(a){a.preventDefault();var b=a.target.getAttribute("data-function");"jSelectWeblink"===b?window[b](a.target.getAttribute("data-id"),a.target.getAttribute("data-title"),a.target.getAttribute("data-cat-id"),null,a.target.getAttribute("data-uri"),a.target.getAttribute("data-language",null)):window.parent[b](a.target.getAttribute("data-id"),a.target.getAttribute("data-title"),a.target.getAttribute("data-cat-id"),null,a.target.getAttribute("data-uri"),a.target.getAttribute("data-language",null))})})}();
!function(){"use strict";window.jSelectWeblink=function(t,e,n,a,r,i){var o,l="";if(!Joomla.getOptions("xtd-weblinks"))return window.parent.Joomla.Modal.getCurrent().close(),!1;o=Joomla.getOptions("xtd-weblinks").editor,""!==i&&(l=' hreflang="'+i+'"'),e="<a"+l+' href="'+r+'">'+e+"</a>",window.parent.Joomla.editors.instances[o].replaceSelection(e),window.parent.Joomla.Modal.getCurrent().close()},document.addEventListener("DOMContentLoaded",function(){for(var t=document.querySelectorAll(".select-link"),e=0,n=t.length;e<n;e++)t[e].addEventListener("click",function(t){t.preventDefault();var e=t.target.getAttribute("data-function");("jSelectWeblink"===e?window:window.parent)[e](t.target.getAttribute("data-id"),t.target.getAttribute("data-title"),t.target.getAttribute("data-cat-id"),null,t.target.getAttribute("data-uri"),t.target.getAttribute("data-language",null))})})}();