var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); /** * Define Javascript function for refreshing attachments lists * * Copyright (C) 2010-2012 Jonathan M. Cameron, All Rights Reserved * License: http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL * * By Jonathan Cameron * * @param siteURL string the site base URL for the request * @param ptype string parent_type for the attachments list parent * @param pentity string parent_entity for the attachments list parent * @param pid integer parent_id for the attachments list parent * @param from string the 'from' clause to pass in the request */ function refreshAttachments(siteUrl, ptype, pentity, pid, from) { var url = siteUrl + "/index.php?option=com_attachments&task=attachmentsList"; url += "&parent_id=" + pid; url += "&parent_type=" + ptype + "&parent_entity=" + pentity; url += "&from=" + from + "&tmpl=component&format=raw"; id = "attachmentsList_" + ptype + "_" + pentity + "_" + pid; var alist = document.getElementById(id); if ( !alist ) { alist = window.parent.document.getElementById(id); } if ( !alist ) { id = "attachmentsList_" + ptype + "_default_" + pid; alist = window.parent.document.getElementById(id); } var a = new Request({ url: url, method: 'get', onComplete: function( response ) { // Refresh the attachments list alist.innerHTML = response; // Remove any old click events (since they are for a deleted/updated SqueezeBox) $$('a.modal-button').removeEvents('click'); // Since the html has been replaced, we need to reconnect the modal button events SqueezeBox.initialize({}); SqueezeBox.assign($$('a.modal-button'), { parse: 'rel' }); }}).send(); }; } /* FILE ARCHIVED ON 07:23:54 Feb 07, 2022 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 07:49:57 Apr 07, 2025. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): captures_list: 0.534 exclusion.robots: 0.028 exclusion.robots.policy: 0.018 esindex: 0.01 cdx.remote: 7.583 LoadShardBlock: 352.284 (3) PetaboxLoader3.datanode: 143.497 (4) PetaboxLoader3.resolve: 1328.777 (2) load_resource: 1127.789 */