Commit 710b99a7 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

generateColor возвращает int

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@55659 954022d7-b5bf-4e40-9824-e11837661b57
parent 8f11967d
...@@ -806,7 +806,7 @@ ...@@ -806,7 +806,7 @@
prot["asc_getHeight"] = prot.asc_getHeight; prot["asc_getHeight"] = prot.asc_getHeight;
function generateColor() { function generateColor() {
return '#' + ('000000' + Math.floor(Math.random()*0xFFFFFF).toString(16)).substr(-6); return Math.floor(Math.random()*0xFFFFFF);
} }
window["Asc"].generateColor = generateColor; window["Asc"].generateColor = generateColor;
......
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