Skip to content
Snippets Groups Projects
Commit fad9494d authored by Jonathan Watt's avatar Jonathan Watt
Browse files

Bug 974175 - Stop using grouping separator characters when displaying <input...

Bug 974175 - Stop using grouping separator characters when displaying <input type=number>'s value. r=ehsan
parent f3825c1c
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,11 @@
using namespace mozilla;
/**
* This pref just controls whether we format the number with grouping separator
* characters when the internal value is set or updated. It does not stop the
* user from typing in a number and using grouping separators.
*/
static bool gLocaleNumberGroupingEnabled;
static const char LOCALE_NUMBER_GROUPING_PREF_STR[] = "dom.forms.number.grouping";
......@@ -28,7 +33,7 @@ LocaleNumberGroupingIsEnabled()
/* check and register ourselves with the pref */
Preferences::AddBoolVarCache(&gLocaleNumberGroupingEnabled,
LOCALE_NUMBER_GROUPING_PREF_STR,
true);
false);
sInitialized = true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment