[Pkg-mozext-commits] [all-in-one-sidebar] 11/29: Minor: Fix #82: global notification for available updates isn't showing in addon panel

David Prévot taffit at moszumanska.debian.org
Thu Oct 29 14:40:37 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository all-in-one-sidebar.

commit 21c8262cf2b80d0e25945a4ec1116dce619f9b9e
Author: Ingo Wennemaring <github at addonlab.com>
Date:   Mon Sep 21 00:55:10 2015 +0200

    Minor: Fix #82: global notification for available updates isn't showing in addon panel
---
 content/addons.js     | 18 +++++++++++-------
 content/addons.xul    |  6 +++---
 skin/scss/addons.scss | 16 ++++++----------
 3 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/content/addons.js b/content/addons.js
index b45a851..1772fce 100644
--- a/content/addons.js
+++ b/content/addons.js
@@ -57,26 +57,30 @@ var AiOS_Addons = {};
         nav[0].setAttribute("style", "overflow:hidden;");
 
         // Toolbar mit Suchfeld usw. verschieben
-        before = document.getElementById("view-port-container");
-        insertedElement = before.parentNode.insertBefore(document.getElementById("header"), before);
+        // before = document.getElementById("view-port-container");
+        // insertedElement = before.parentNode.insertBefore(document.getElementById("header"), before);
 
         // Label bei Suche ohne Suchergebnisse kuerzen
-        document.getElementById("search-list-empty").childNodes[1].childNodes[0].setAttribute("crop", "end");
+        // document.getElementById("search-list-empty").childNodes[1].childNodes[0].setAttribute("crop", "end");
 
         // Container mit Update-Meldungen verschieben => ansonsten werden die Meldungen im Header angezeigt
-        before = document.getElementById("view-port-container");
+        before = document.getElementById("header");
         insertedElement = before.parentNode.insertBefore(document.getElementById("updates-container"), before);
 
         // Inhalt der gelben Notificationbox vertikal anordnen
         updatesBox = document.createElement("vbox");
         updatesBox.setAttribute("align", "left");
+        updatesBox.appendChild(document.getElementById("updates-noneFound"));
+        updatesBox.appendChild(document.getElementById("updates-manualUpdatesFound-btn"));
+        updatesBox.appendChild(document.getElementById("updates-progress"));
+        updatesBox.appendChild(document.getElementById("updates-installed"));
         updatesBox.appendChild(document.getElementById("updates-downloaded"));
         updatesBox.appendChild(document.getElementById("updates-restart-btn"));
-        document.getElementById("updates-container").insertBefore(updatesBox, document.getElementById("updates-container").childNodes[5]);
+        document.getElementById("updates-container").insertBefore(updatesBox, document.getElementById("updates-container").childNodes[1]);
 
         // Navigationsbuttons immer sichtbar machen
-        document.getElementById('back-btn').setAttribute('hidden', false);
-        document.getElementById('forward-btn').setAttribute('hidden', false);
+        // document.getElementById('back-btn').setAttribute('hidden', false);
+        // document.getElementById('forward-btn').setAttribute('hidden', false);
 
     };
 
diff --git a/content/addons.xul b/content/addons.xul
index d326f46..0fd6207 100644
--- a/content/addons.xul
+++ b/content/addons.xul
@@ -28,7 +28,7 @@
         <textbox id="header-search" flex="1" />
     </hbox> -->
 
-    <!-- <hbox id="updates-container">
+    <hbox id="updates-container">
         <image class="spinner"/>
 
         <label id="updates-noneFound" >
@@ -57,8 +57,8 @@
 
         <spacer flex="1" />
 
-        <toolbarbutton id="close-btn" class="close-icon" oncommand="AiOS_Addons.hideNotification();" style="display:none;" />
+        <toolbarbutton id="updates-close-btn" class="close-icon" oncommand="AiOS_Addons.hideNotification();" style="display:none;" />
 
-    </hbox> -->
+    </hbox>
 
 </overlay>
diff --git a/skin/scss/addons.scss b/skin/scss/addons.scss
index ed79b1b..b43879d 100644
--- a/skin/scss/addons.scss
+++ b/skin/scss/addons.scss
@@ -53,18 +53,13 @@ page[aios-inSidebar] {
     }
 
     #updates-container {
-        padding: 5px 0;
+        padding: 10px 0;
 
         .button-box {
-            padding-left: 0;
-            padding-right: 0;
+            padding: 0 !important;
         }
 
-        button.button-link {
-            margin-left: 5px;
-        }
-
-        #close-btn {
+        #updates-close-btn {
             display: block !important;
         }
     }
@@ -195,7 +190,8 @@ page[aios-inSidebar] {
                 font-weight: bold;
             }
 
-            .warning {
+            .warning,
+            .pending {
                 > label {
                     margin-left: 8px;
                 }
@@ -675,7 +671,7 @@ page[aios-inSidebar] {
             #updates-container {
                 margin: 5px 0 0 0;
 
-                #close-btn {
+                #updates-close-btn {
                     margin: 0 5px 0 0;
                     padding: 0;
                 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/all-in-one-sidebar.git



More information about the Pkg-mozext-commits mailing list