diff options
| author | Daniel MacDougall | 2012-04-01 00:33:40 -0700 | 
|---|---|---|
| committer | Daniel MacDougall | 2012-04-01 00:33:40 -0700 | 
| commit | fc88ea108c6f39f5f9e5e828dc1d3a8915d9d93b (patch) | |
| tree | 8ea4095c12099b2c5ebad9e6d0b98b2d22527a66 | |
| parent | 1e98a59c4954ac73e770da2a8843c2a19f6f252f (diff) | |
| download | vimium-fc88ea108c6f39f5f9e5e828dc1d3a8915d9d93b.tar.bz2 | |
Add visual confirmation when url excluded via popup
| -rw-r--r-- | icons/check.png | bin | 0 -> 393 bytes | |||
| -rw-r--r-- | popup.html | 17 | 
2 files changed, 16 insertions, 1 deletions
| diff --git a/icons/check.png b/icons/check.pngBinary files differ new file mode 100644 index 00000000..def20c00 --- /dev/null +++ b/icons/check.png @@ -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); | 
