[extensions-web] Linkify the icon in the local extension view as well
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] Linkify the icon in the local extension view as well
- Date: Tue, 25 Oct 2011 21:00:29 +0000 (UTC)
commit c84e20c5b68022b6dfc64cd7edb2e15cc2c57726
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue Oct 25 17:00:14 2011 -0400
Linkify the icon in the local extension view as well
sweettooth/static/js/extensions.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/sweettooth/static/js/extensions.js b/sweettooth/static/js/extensions.js
index 12dd641..54b3be2 100644
--- a/sweettooth/static/js/extensions.js
+++ b/sweettooth/static/js/extensions.js
@@ -202,8 +202,8 @@ function($, messages, dbusProxy) {
}).done(function(result) {
$elem.
find('span.author').html(" by <a href=\"/accounts/profile/"+result.creator+"\">"+result.creator+"</a>").end().
- find('h3').html($('<a>', {'href': result.link}).text(extension.name)).end().
- find('img.icon').attr('src', result.icon).end().
+ find('img.icon').detach().end().
+ find('h3').html($('<a>', {'href': result.link}).append($('<img>', {'class': 'icon', 'src': result.icon})).append(extension.name)).end().
append($('<button>', {'class': 'uninstall', 'title': "Uninstall"}).text("Uninstall").bind('click', uninstall)).
data('pk', result.pk);
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]