Apply suggestions from code review
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
parent
e60dfef0d0
commit
3607aa32ca
5 changed files with 9 additions and 10 deletions
|
@ -113,7 +113,6 @@ var FileBrowser = {
|
|||
embed = '[url=' + this.dataset.link + '][img=' + this.dataset.img + ']' + this.dataset.alt + '[/img][/url]';
|
||||
}
|
||||
if (FileBrowser.type === 'attachment') {
|
||||
// attachment links are "baseurl/attach/id"; we need id
|
||||
embed = '[attachment]' + this.dataset.link + '[/attachment]';
|
||||
}
|
||||
|
||||
|
|
|
@ -132,7 +132,7 @@ Dialog.show = function (url, title) {
|
|||
Dialog._get_url = function (type, name, id) {
|
||||
var hash = name;
|
||||
if (id !== undefined) hash = hash + "-" + id;
|
||||
return "profile/" + localNickname + "/" + type + "/browser?mode=none&theme=frio#" + hash;
|
||||
return 'profile/' + localNickname + '/' + type + '/browser?mode=none&theme=frio#' + hash;
|
||||
};
|
||||
|
||||
// Does load the filebrowser into the jot modal.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue