[extensions-web: 19/75] Don't allow users to uninstall extensions not on the site.
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web: 19/75] Don't allow users to uninstall extensions not on the site.
- Date: Fri, 23 Sep 2011 03:16:01 +0000 (UTC)
commit 02625ab6ca26abbe3ddafc60828e30d6e66646b0
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Wed Sep 14 09:36:41 2011 -0400
Don't allow users to uninstall extensions not on the site.
Bookkeeping is harder this way.
sweettooth/static/js/extensions.js | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/sweettooth/static/js/extensions.js b/sweettooth/static/js/extensions.js
index 1824533..9024432 100644
--- a/sweettooth/static/js/extensions.js
+++ b/sweettooth/static/js/extensions.js
@@ -130,8 +130,7 @@ function($, messages, dbusProxy) {
append($('<img>', {'class': 'icon'})).
append($('<h3>').text(extension.name)).
append($('<span>', {'class': 'author'})).
- append($('<p>', {'class': 'description'}).text(extension.description)).
- append($('<button>', {'class': 'uninstall'}).text("Uninstall").bind('click', uninstall));
+ append($('<p>', {'class': 'description'}).text(extension.description));
$.ajax({
url: "/ajax/d/",
@@ -142,7 +141,8 @@ function($, messages, dbusProxy) {
$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);
+ find('img.icon').attr('src', result.icon).end().
+ append($('<button>', {'class': 'uninstall'}).text("Uninstall").bind('click', uninstall));
});
// The DOM element's CSS styles won't be fully
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]