aboutsummaryrefslogtreecommitdiffstats
path: root/options.html
diff options
context:
space:
mode:
authorPhil Crosby2010-01-18 00:24:18 -0800
committerPhil Crosby2010-01-18 00:24:18 -0800
commit3f1cdef638d5a0fdf832788fc90776d571d47fb8 (patch)
treec52fad803afd0dc72cab2937e14c216d019fdc3e /options.html
parentf0358dad04862e00452bfcb987d222a934e32c69 (diff)
downloadvimium-3f1cdef638d5a0fdf832788fc90776d571d47fb8.tar.bz2
Make the characters used in link hints a user-configurable option. Fixes #66.
I'll clean up the way we store and handle default options shortly.
Diffstat (limited to 'options.html')
-rw-r--r--options.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/options.html b/options.html
index 06c8cb05..d5cab9c8 100644
--- a/options.html
+++ b/options.html
@@ -58,7 +58,7 @@
function initializeOptions() {
populateOptions();
- var elements = ["scrollStepSize", "defaultZoomLevel", "excludedUrls"];
+ var elements = ["scrollStepSize", "defaultZoomLevel", "excludedUrls", "linkHintCharacters"];
for (var i = 0; i < elements.length; i++)
$(elements[i]).addEventListener("change", enableSaveButton, false);
$("advancedOptions").addEventListener("click", openAdvancedOptions, false);
@@ -71,6 +71,7 @@
localStorage["scrollStepSize"] = $("scrollStepSize").value
localStorage["defaultZoomLevel"] = $("defaultZoomLevel").value
localStorage["excludedUrls"] = $("excludedUrls").value;
+ localStorage["linkHintCharacters"] = $("linkHintCharacters").value;
$("saveOptions").disabled = true;
}
@@ -90,6 +91,7 @@
scrollStepSize.value = "60";
defaultZoomLevel.value = "100";
excludedUrls.value = "";
+ linkHintCharacters.value = "sadfjklewcmp";
$("saveOptions").disabled = true;
}
@@ -147,7 +149,7 @@
The characters placed next to each link after typing "F" to enter link hinting mode.
</div>
</div>
- <input id="characterLinkHints" type="text" style="width:150px" />
+ <input id="linkHintCharacters" type="text" style="width:150px" />
</td>
</tr>
</table>