[extensions-web] js: Make sure to send an "enable" when we first install the extension



commit ea551bded5a1732ad2ac0688d7f2eb173c5f080c
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Sun Dec 18 18:32:33 2011 -0500

    js: Make sure to send an "enable" when we first install the extension

 sweettooth/static/js/extensions.js |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/sweettooth/static/js/extensions.js b/sweettooth/static/js/extensions.js
index d4c6c75..dbac306 100644
--- a/sweettooth/static/js/extensions.js
+++ b/sweettooth/static/js/extensions.js
@@ -180,6 +180,7 @@ function($, messages, dbusProxy, extensionUtils) {
                     // If the extension is uninstalled and we
                     // flick the switch on, install.
                     dbusProxy.InstallExtension(uuid, $elem.data('pk').toString());
+                    sendPopularity('enable');
                 } else if (oldState == ExtensionState.DISABLED ||
                            oldState == ExtensionState.INITIALIZED) {
                     dbusProxy.EnableExtension(uuid);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]