[extensions-web] js: Fix local extensions view
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] js: Fix local extensions view
- Date: Sun, 18 Dec 2011 00:50:24 +0000 (UTC)
commit 080b0433444464169fd8b9ca73e0040085c56b04
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Sat Dec 17 19:30:41 2011 -0500
js: Fix local extensions view
When using $elem.data to populate a data object, jQuery won't actually
parse the JSON when popping it out, so we need to do it manually.
sweettooth/static/js/extensions.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/sweettooth/static/js/extensions.js b/sweettooth/static/js/extensions.js
index 86feed0..9e475f9 100644
--- a/sweettooth/static/js/extensions.js
+++ b/sweettooth/static/js/extensions.js
@@ -217,7 +217,7 @@ function($, messages, dbusProxy, extensionUtils) {
if (result.pk !== undefined) {
$elem.
data('pk', result.pk).
- data('svm', result.shell_version_map).
+ data('svm', $.parseJSON(result.shell_version_map)).
append($('<button>', {'class': 'uninstall', 'title': "Uninstall"}).text("Uninstall").bind('click', uninstall));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]