[extensions-web] extensions: remove customization from extension switch on state change.
- From: Yuri Konotopov <ykonotopov src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] extensions: remove customization from extension switch on state change.
- Date: Sun, 12 Feb 2017 18:24:19 +0000 (UTC)
commit 5fe6a03de190ebdb728f2a3fe8783bb7c00a0324
Author: Yuri Konotopov <ykonotopov gnome org>
Date: Sun Feb 12 22:23:59 2017 +0400
extensions: remove customization from extension switch on state change.
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=751964
sweettooth/static/js/extensions.js | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/sweettooth/static/js/extensions.js b/sweettooth/static/js/extensions.js
index d325c98..8427a01 100644
--- a/sweettooth/static/js/extensions.js
+++ b/sweettooth/static/js/extensions.js
@@ -268,10 +268,15 @@ define(['jquery', 'messages', 'dbus!_', 'extensionUtils', 'templates', 'paginato
newState == ExtensionState.INITIALIZED ||
newState == ExtensionState.UNINSTALLED)
{
+ // Remove customization
+ $switch.switchify('customize');
$switch.switchify('activate', false);
+ $elem.removeClass('out-of-date');
}
else if (newState == ExtensionState.ENABLED)
{
+ // Remove customization
+ $switch.switchify('customize');
$switch.switchify('activate', true);
$elem.removeClass('out-of-date');
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]