use click handler for list info fixes #459

This commit is contained in:
j 2012-02-16 21:03:30 +05:30
parent d7a20821d6
commit d176990b92
2 changed files with 3 additions and 1 deletions

View file

@ -305,6 +305,7 @@ pandora.ui.home = function() {
+ lists[selected].description + lists[selected].description
) )
.appendTo($lists); .appendTo($lists);
pandora.createLinks($text);
$icon = Ox.Element({ $icon = Ox.Element({
element: '<img>', element: '<img>',
tooltip: 'View List' tooltip: 'View List'
@ -435,7 +436,7 @@ pandora.ui.home = function() {
selectList(lists.length - 1); selectList(lists.length - 1);
} }
} }
} };
Ox.$document.bind({keydown: self.keydown}); Ox.$document.bind({keydown: self.keydown});
} }
lists.forEach(function(list, i) { lists.forEach(function(list, i) {

View file

@ -207,6 +207,7 @@ pandora.ui.listInfo = function() {
$('<div>').css({height: '8px'}) $('<div>').css({height: '8px'})
).append( ).append(
$description = Ox.Editable({ $description = Ox.Editable({
clickLink: pandora.clickLink,
format: function(value) { format: function(value) {
return '<div style="color: rgb(128, 128, 128); text-align: center">' return '<div style="color: rgb(128, 128, 128); text-align: center">'
+ value + '</div>'; + value + '</div>';