$files = Attach::selectToArray(['id', 'filename', 'filetype'], ['uid' => $this->session->getLocalUserId()]);
-
$fileArray = array_map([$this, 'map_files'], $files);
$tpl = Renderer::getMarkupTemplate('media/browser.tpl');
}
$owner = User::getOwnerDataById($this->userSession->getLocalUserId());
-
if (!$owner) {
$this->logger->warning('Owner not found.', ['uid' => $this->userSession->getLocalUserId()]);
return $this->return(401, $this->t('Invalid request.'));
Browser.id = h.split('-')[1];
}
- console.log('FileBrowser:', nickname, type, Browser.event, Browser.id);
-
$('.error a.close').on('click', function (e) {
e.preventDefault();
$('.error').addClass('hidden');
if (Browser.type === "attachment") {
embed = '[attachment]' + this.dataset.link + '[/attachment]';
}
- console.log(Browser.event, this.dataset.filename, embed, Browser.id);
parent.$('body').trigger(Browser.event, [
this.dataset.filename,
embed,
* IMPORTANT
*
* This is a modified version to work with
- * the frio theme.and bootstrap modals
+ * the frio theme and Bootstrap modals
*
* The original file is under:
* js/module/media/browser.js
}
}
- console.log('FileBrowser: ' + nickname, type, Browser.event, Browser.id);
-
Browser.postLoad();
$('.error .close').on('click', function (e) {