aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel MacDougall2012-04-01 00:33:40 -0700
committerDaniel MacDougall2012-04-01 00:33:40 -0700
commitfc88ea108c6f39f5f9e5e828dc1d3a8915d9d93b (patch)
tree8ea4095c12099b2c5ebad9e6d0b98b2d22527a66
parent1e98a59c4954ac73e770da2a8843c2a19f6f252f (diff)
downloadvimium-fc88ea108c6f39f5f9e5e828dc1d3a8915d9d93b.tar.bz2
Add visual confirmation when url excluded via popup
-rw-r--r--icons/check.pngbin0 -> 393 bytes
-rw-r--r--popup.html17
2 files changed, 16 insertions, 1 deletions
diff --git a/icons/check.png b/icons/check.png
new file mode 100644
index 00000000..def20c00
--- /dev/null
+++ b/icons/check.png
Binary files differ
diff --git a/popup.html b/popup.html
index a788eab4..7fb9b646 100644
--- a/popup.html
+++ b/popup.html
@@ -5,10 +5,23 @@
}
#vimiumPopup { width: 300px; }
+
#excludeControls {
padding: 10px;
}
- #popupInput { width: 180px; }
+
+ #popupInput {
+ width: 160px;
+ }
+
+ #excludeConfirm {
+ display: inline-block;
+ width: 18px;
+ height: 13px;
+ background: url(icons/check.png) 3px 2px no-repeat;
+ display: none;
+ }
+
#popupButton { margin-left: 10px; }
#popupMenu ul {
@@ -32,6 +45,7 @@
<div id="excludeControls">
<input id="popupInput" type="text" />
<input id="popupButton" type="button" value="Exclude URL" />
+ <span id="excludeConfirm"></span>
</div>
<div id="popupMenu">
@@ -56,6 +70,7 @@
function onExcludeUrl(e) {
var url = document.getElementById("popupInput").value;
chrome.extension.getBackgroundPage().addExcludedUrl(url);
+ document.getElementById("excludeConfirm").setAttribute("style", "display: inline-block");
}
window.addEventListener("load", onLoad, false);