add html code to documents dialog, fixed #2126

This commit is contained in:
j 2014-02-02 07:00:07 +00:00 committed by rolux
parent ec417f5ac9
commit 7de2644eea

View file

@ -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