Commit d3fbf596 authored by Sergey.Konovalov's avatar Sergey.Konovalov Committed by Alexander.Trofimov

asc_setLocale добавлена очистка cache

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@63013 954022d7-b5bf-4e40-9824-e11837661b57
parent d8a3157f
......@@ -1962,6 +1962,9 @@ function NumFormatCache()
}
NumFormatCache.prototype =
{
cleanCache : function(){
this.oNumFormats = {};
},
get : function(format)
{
var res = this.oNumFormats[format];
......@@ -2565,6 +2568,9 @@ function GeneralEditFormatCache()
}
GeneralEditFormatCache.prototype =
{
cleanCache : function(){
this.oCache = {};
},
format: function (number, cultureInfo)
{
if (null == cultureInfo)
......
......@@ -467,7 +467,11 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
};
spreadsheet_api.prototype.asc_setLocale = function (val) {
g_oDefaultCultureInfo = g_aCultureInfos[val];
if (this.wbModel) this.wbModel.rebuildColors();
if (this.wbModel){
oGeneralEditFormatCache.cleanCache();
oNumFormatCache.cleanCache();
this.wbModel.rebuildColors();
}
};
spreadsheet_api.prototype.asc_LoadDocument = function (c_DocInfo) {
var t = this;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment