Commit fd4a0bcd authored by konovalovsergey's avatar konovalovsergey

for currency button

parent ac1398dc
...@@ -1234,18 +1234,20 @@ Num.prototype = ...@@ -1234,18 +1234,20 @@ Num.prototype =
break; break;
} }
} else { } else {
//todo currencyLocale true/false?
var currencyLocale = true;
switch (this.id) { switch (this.id) {
case 5: case 5:
res = AscCommon.getCurrencyFormatSimple(null, 0, true, false, false); res = AscCommon.getCurrencyFormatSimple(null, 0, true, currencyLocale, false);
break; break;
case 6: case 6:
res = AscCommon.getCurrencyFormatSimple(null, 0, true, false, true); res = AscCommon.getCurrencyFormatSimple(null, 0, true, currencyLocale, true);
break; break;
case 7: case 7:
res = AscCommon.getCurrencyFormatSimple(null, 2, true, false, false); res = AscCommon.getCurrencyFormatSimple(null, 2, true, currencyLocale, false);
break; break;
case 8: case 8:
res = AscCommon.getCurrencyFormatSimple(null, 2, true, false, true); res = AscCommon.getCurrencyFormatSimple(null, 2, true, currencyLocale, true);
break; break;
case 14: case 14:
res = AscCommon.getShortDateFormat(null); res = AscCommon.getShortDateFormat(null);
...@@ -1262,28 +1264,28 @@ Num.prototype = ...@@ -1262,28 +1264,28 @@ Num.prototype =
res = AscCommon.getShortDateFormat(null); res = AscCommon.getShortDateFormat(null);
break; break;
case 37: case 37:
res = AscCommon.getCurrencyFormatSimple(null, 0, false, false, false); res = AscCommon.getCurrencyFormatSimple(null, 0, false, currencyLocale, false);
break; break;
case 38: case 38:
res = AscCommon.getCurrencyFormatSimple(null, 0, false, false, true); res = AscCommon.getCurrencyFormatSimple(null, 0, false, currencyLocale, true);
break; break;
case 39: case 39:
res = AscCommon.getCurrencyFormatSimple(null, 2, false, false, false); res = AscCommon.getCurrencyFormatSimple(null, 2, false, currencyLocale, false);
break; break;
case 40: case 40:
res = AscCommon.getCurrencyFormatSimple(null, 2, false, false, true); res = AscCommon.getCurrencyFormatSimple(null, 2, false, currencyLocale, true);
break; break;
case 41: case 41:
res = AscCommon.getCurrencyFormat(null, 0, false, false); res = AscCommon.getCurrencyFormat(null, 0, false, currencyLocale);
break; break;
case 42: case 42:
res = AscCommon.getCurrencyFormat(null, 0, true, false); res = AscCommon.getCurrencyFormat(null, 0, true, currencyLocale);
break; break;
case 43: case 43:
res = AscCommon.getCurrencyFormat(null, 2, false, false); res = AscCommon.getCurrencyFormat(null, 2, false, currencyLocale);
break; break;
case 44: case 44:
res = AscCommon.getCurrencyFormat(null, 2, true, false); res = AscCommon.getCurrencyFormat(null, 2, true, currencyLocale);
break; break;
} }
} }
......
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