From 05b8f2e7f9c941c328e2bda1a863ee5a6ea99dc7 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Wed, 26 Feb 2014 00:41:36 +1100 Subject: [PATCH] Fix 'followhints' validation. --- common/content/hints.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/common/content/hints.js b/common/content/hints.js index d22bfcff..8800ce11 100644 --- a/common/content/hints.js +++ b/common/content/hints.js @@ -1351,14 +1351,15 @@ var Hints = Module("hints", { "number", 0, { validator: function (value) value >= 0 }); + // TODO: shouldn't this be a stringlist or even boolean? --djk options.add(["followhints", "fh"], "Define the conditions under which selected hints are followed", "number", 0, { - values: { - "0": "Follow the first hint as soon as typed text uniquely identifies it. Follow the selected hint on .", - "1": "Follow the selected hint on ." - } + values: [ + [0, "Follow the first hint as soon as typed text uniquely identifies it. Follow the selected hint on ."], + [1, "Follow the selected hint on ."] + ] }); options.add(["hintmatching", "hm"],