projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c66f1e
)
Pman.Gnumeric.js
author
Alan Knowles
<alan@akbkhome.com>
Wed, 17 Nov 2010 06:43:29 +0000
(14:43 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Wed, 17 Nov 2010 06:43:29 +0000
(14:43 +0800)
Pman.Gnumeric.js
patch
|
blob
|
history
diff --git
a/Pman.Gnumeric.js
b/Pman.Gnumeric.js
index
0cfa2c5
..
df1635c
100644
(file)
--- a/
Pman.Gnumeric.js
+++ b/
Pman.Gnumeric.js
@@
-902,10
+902,11
@@
Roo.extend(Pman.Gnumeric, Roo.util.Observable, {
parseHtmlStyle : function(dom, row, col, colspan, rowspan) {
function toCol (rgb) {
- var ar = rgb.replace(/rgb\(/, '').replace(/\)/, '').replace(/ /, '').split(',');
+
+ var ar = rgb.replace(/rgb[a]?\(/, '').replace(/\)/, '').replace(/ /, '').split(',');
var rcs = [];
+ ar = ar.slice(0,3);
Roo.each(ar, function(c) {
-
rcs.push((c*256).toString(16)) ;
});
return rcs.join(':');