From ae05ff63d175e5e9402aa6ee70cfc71d8b8a058e Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 23 Feb 2013 16:42:24 +0530 Subject: [PATCH] update text panel --- static/js/pandora/textPanel.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/static/js/pandora/textPanel.js b/static/js/pandora/textPanel.js index 78a0d4b21..5e27e47bb 100644 --- a/static/js/pandora/textPanel.js +++ b/static/js/pandora/textPanel.js @@ -117,8 +117,8 @@ pandora.ui.textPanel = function() { if (text.type == 'html') { $editMenu = Ox.MenuButton({ items: [ - {id: 'inserthtml', title: 'Insert HTML...'}, - {id: 'insertembed', title: 'Insert Embed...'} + {id: 'insertHTML', title: 'Insert HTML...'}, + {id: 'insertEmbed', title: 'Insert Embed...'} ], title: 'edit', tooltip: 'Editing Options', @@ -128,6 +128,15 @@ pandora.ui.textPanel = function() { float: 'left', margin: '4px 2px 4px 4px' }) + .bindEvent({ + click: function(data) { + if (data.id == 'insertEmbed') { + pandora.$ui.insertEmbedDialog = pandora.ui.insertEmbedDialog(function() { + // ... + }).open(); + } + } + }) .appendTo($toolbar); } else { $uploadButton = Ox.FileButton({