From 7de2644eea2f48005ad994ee709f8b4c211fc694 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 2 Feb 2014 07:00:07 +0000 Subject: [PATCH] add html code to documents dialog, fixed #2126 --- static/js/documentsPanel.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/static/js/documentsPanel.js b/static/js/documentsPanel.js index 4a2d36b3..fa9485ec 100644 --- a/static/js/documentsPanel.js +++ b/static/js/documentsPanel.js @@ -446,6 +446,12 @@ pandora.ui.documentsPanel = function(options) { openDocumentsDialog(); } + function getEmbed(item) { + return ''; + } + 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