forked from 0x2620/pandora
add html code to documents dialog, fixed #2126
This commit is contained in:
parent
ec417f5ac9
commit
7de2644eea
1 changed files with 15 additions and 0 deletions
|
@ -446,6 +446,12 @@ pandora.ui.documentsPanel = function(options) {
|
|||
openDocumentsDialog();
|
||||
}
|
||||
|
||||
function getEmbed(item) {
|
||||
return '<a href="/documents/'
|
||||
+ item.id + '"><img src="/documents/'
|
||||
+ item.id + '/256p.jpg"></a>';
|
||||
}
|
||||
|
||||
function getOrderButtonTitle() {
|
||||
return ui.documentsSort[0].operator == '+' ? 'up' : 'down';
|
||||
}
|
||||
|
@ -647,6 +653,15 @@ pandora.ui.documentsPanel = function(options) {
|
|||
type: 'textarea',
|
||||
value: item.description,
|
||||
width: width
|
||||
}),
|
||||
Ox.Input({
|
||||
disabled: true,
|
||||
height: 36,
|
||||
id: 'embed',
|
||||
placeholder: Ox._('HTML Embed'),
|
||||
type: 'textarea',
|
||||
value: getEmbed(item),
|
||||
width: width
|
||||
})
|
||||
],
|
||||
width: 240
|
||||
|
|
Loading…
Reference in a new issue