addScriptDeclaration("var ImageManager = window.parent.ImageManager;");
$this->assign('baseURL', COM_MEDIA_BASEURL);
$this->assignRef('images', $this->get('images'));
$this->assignRef('folders', $this->get('folders'));
$this->assignRef('state', $this->get('state'));
parent::display($tpl);
}
function setFolder($index = 0)
{
if (isset($this->folders[$index])) {
$this->_tmp_folder = &$this->folders[$index];
} else {
$this->_tmp_folder = new JObject;
}
}
function setImage($index = 0)
{
if (isset($this->images[$index])) {
$this->_tmp_img = &$this->images[$index];
} else {
$this->_tmp_img = new JObject;
}
}
}