diff --git a/drivers/firefox-sdk/data/css/panel.css b/drivers/firefox-sdk/data/css/panel.css index 8670ae7df..d37ac28e6 100644 --- a/drivers/firefox-sdk/data/css/panel.css +++ b/drivers/firefox-sdk/data/css/panel.css @@ -54,39 +54,8 @@ img { margin: 5px 0 0 24px; } -.empty { +#empty { color: #999; font-style: italic; text-align: center; } - -#buttons { - margin-top: 12px; - overflow: hidden; -} - - #buttons button { - height: 32px; - } - -#analyze-headers { - float: left; - width: 158px; -} - - #analyze-headers.pending { - background-image: url('../images/pending2.gif'); - background-position: center center; - background-repeat: no-repeat; - text-indent: -999px; - } - -#options { - background-image: url('../images/options.png'); - background-position: center center; - background-repeat: no-repeat; - float: right; - height: 32px; - min-width: 32px; - width: 32px; -} diff --git a/drivers/firefox-sdk/data/js/panel.js b/drivers/firefox-sdk/data/js/panel.js index eb68f80b9..5a4228f7c 100644 --- a/drivers/firefox-sdk/data/js/panel.js +++ b/drivers/firefox-sdk/data/js/panel.js @@ -1,10 +1,14 @@ (function() { self.port.on('displayApps', function(message) { - var detectedApps = document.getElementById('detected-apps'); + var + detectedApps = document.getElementById('detected-apps') + empty = document.getElementById('empty'); detectedApps.innerHTML = ''; if ( message.tabCache.count > 0 ) { + empty.style.display = 'none'; + for ( appName in message.tabCache.appsDetected ) { confidence = message.tabCache.appsDetected[appName].confidenceTotal; version = message.tabCache.appsDetected[appName].version; @@ -29,6 +33,8 @@ detectedApps.innerHTML = detectedApps.innerHTML + html; } + } else { + empty.style.display = 'block'; } self.port.emit('resize', document.body.offsetHeight); diff --git a/drivers/firefox-sdk/data/panel.html b/drivers/firefox-sdk/data/panel.html index b64badd09..b1a10015c 100644 --- a/drivers/firefox-sdk/data/panel.html +++ b/drivers/firefox-sdk/data/panel.html @@ -7,6 +7,8 @@
+ +