diff options
-rw-r--r-- | chrome/css/redirector.css | 5 | ||||
-rw-r--r-- | chrome/help.html | 2 | ||||
-rw-r--r-- | chrome/js/redirector-ui.js | 6 | ||||
-rw-r--r-- | chrome/redirector.html | 14 |
4 files changed, 21 insertions, 6 deletions
diff --git a/chrome/css/redirector.css b/chrome/css/redirector.css index 7903171..47b2028 100644 --- a/chrome/css/redirector.css +++ b/chrome/css/redirector.css @@ -33,8 +33,10 @@ li:first-child { border-top:none;} display:none; position:fixed; margin:auto; + width:300px; } +h2 { text-align:center; margin-top:0px; } button { border:solid 1px grey; border-radius:4px; background:-moz-linear-gradient(top, #ccc, #fff); cursor:pointer;} h5 { text-align:center; margin:0px; padding-left:130px; } .pattern, .redirectTo { color:blue; font-style:italic;} @@ -46,6 +48,9 @@ h5 { text-align:center; margin:0px; padding-left:130px; } #redirect-form div label{ text-align:right; padding:6px;} #redirect-form div input[type='text']{ margin-top:7px; width:300px; display:inline-block; } + +#config label{ display:inline; } +#config input { margin-top:10px; } .button-row { text-align:center; display:block !important;} .dialog { diff --git a/chrome/help.html b/chrome/help.html index 4534d96..a6a589b 100644 --- a/chrome/help.html +++ b/chrome/help.html @@ -3,7 +3,7 @@ <head> <title>Redirector Help</title> <style type="text/css"> - body { font-family: Verdana, Arial; color:black; background-color:white; font-size:0.9em;} + body { font-family: Verdana, Arial; color:black; background-color:white; font-size:0.9em; } a { color:blue; } </style> </head> diff --git a/chrome/js/redirector-ui.js b/chrome/js/redirector-ui.js index 30af176..53b8892 100644 --- a/chrome/js/redirector-ui.js +++ b/chrome/js/redirector-ui.js @@ -238,6 +238,12 @@ $(document).ready(function() { $('#configure').click(configure); $('#save').click(saveRedirect); $('#test-pattern').click(testPattern); + $('#close').click(function() { + $('#config').hide(); + }); + $('#help').click(function() { + window.location.href = "chrome://redirector/content/help.html"; + }); bindConfig(); prefs.addListener({ changedPrefs:bindConfig}); diff --git a/chrome/redirector.html b/chrome/redirector.html index 8af747e..6dcb39d 100644 --- a/chrome/redirector.html +++ b/chrome/redirector.html @@ -14,6 +14,7 @@ <button id="configure">Configure</button> <button id="import">Import</button> <button id="export">Export</button> + <button id="help">Help</button> </div> <ul id="redirect-list"> <li> @@ -27,11 +28,14 @@ </ul> <div id="config" class="dialog"> <h2>Configuration</h2> - <input type="checkbox" id="enable-redirector" data-pref="enabled" /><label>Enabled</label> - <input type="checkbox" id="show-status-bar-icon" data-pref="showStatusBarIcon"/><label>Statusbar icon</label> - <input type="checkbox" id="show-context-menu" data-pref="showContextMenu"/><label>Context menu</label> - <input type="checkbox" id="enable-debug-output" data-pref="debugEnabled"/><label>Debug output</label> - </div> + <input type="checkbox" id="enable-redirector" data-pref="enabled" /><label>Enabled</label><br /> + <input type="checkbox" id="show-status-bar-icon" data-pref="showStatusBarIcon"/><label>Statusbar icon</label><br /> + <input type="checkbox" id="show-context-menu" data-pref="showContextMenu"/><label>Context menu</label><br /> + <input type="checkbox" id="enable-debug-output" data-pref="debugEnabled"/><label>Debug output</label><br /> + <div class="button-row"> + <button id="close">Close</button> + </div> + </div> <div id="redirect-form" class="dialog"> <div> <label>Description</label> |