Commit 9b958ca1 authored by Igor.Zotov's avatar Igor.Zotov Committed by Alexander.Trofimov

http://bugzserver/show_bug.cgi?id=25935 - [Copy&Paste] Цвет границ ячейки...

http://bugzserver/show_bug.cgi?id=25935 -  [Copy&Paste] Цвет границ ячейки становится черным при вставке из редактора версии 2.5

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@57773 954022d7-b5bf-4e40-9824-e11837661b57
parent bcd1c15e
...@@ -1338,11 +1338,15 @@ ...@@ -1338,11 +1338,15 @@
if(borderTopStyle == '') if(borderTopStyle == '')
borderTopStyle = tmpBorderStyle; borderTopStyle = tmpBorderStyle;
/*var borderTopColor = node.style.borderTopColor; var borderTopColor = node.style.borderTopColor;
if(borderTopColor == '') if(borderTopColor == '')
borderTopColor = $(node).css('border-top-color');*/ borderTopColor = $(node).css('border-top-color');
var borderTopColor = 0;
if(borderTopColor)
borderTopColor = this._getBinaryColor(borderTopColor);
else
borderTopColor = 0;
borderStyleName = this._getBorderStyleName(borderTopStyle, borderTopWidth); borderStyleName = this._getBorderStyleName(borderTopStyle, borderTopWidth);
if (null !== borderStyleName) { if (null !== borderStyleName) {
oNewItem.borders.t.setStyle(borderStyleName); oNewItem.borders.t.setStyle(borderStyleName);
...@@ -1360,10 +1364,14 @@ ...@@ -1360,10 +1364,14 @@
if(borderBottomStyle == '') if(borderBottomStyle == '')
borderBottomStyle = tmpBorderStyle; borderBottomStyle = tmpBorderStyle;
/*var borderBottomColor = node.style.borderBottomColor; var borderBottomColor = node.style.borderBottomColor;
if(borderBottomColor == '') if(borderBottomColor == '')
borderBottomColor = $(node).css('border-bottom-color');*/ borderBottomColor = $(node).css('border-bottom-color');
var borderBottomColor = 0;
if(borderBottomColor)
borderBottomColor = this._getBinaryColor(borderBottomColor);
else
borderBottomColor = 0;
borderStyleName = this._getBorderStyleName(borderBottomStyle, borderBottomWidth); borderStyleName = this._getBorderStyleName(borderBottomStyle, borderBottomWidth);
if (null !== borderStyleName) { if (null !== borderStyleName) {
...@@ -1382,10 +1390,14 @@ ...@@ -1382,10 +1390,14 @@
if(borderLeftStyle == '') if(borderLeftStyle == '')
borderLeftStyle = tmpBorderStyle; borderLeftStyle = tmpBorderStyle;
/*var borderLeftColor = node.style.borderLeftColor; var borderLeftColor = node.style.borderLeftColor;
if(borderLeftColor == '') if(borderLeftColor == '')
borderLeftColor = $(node).css('border-left-color');*/ borderLeftColor = $(node).css('border-left-color');
var borderLeftColor = 0;
if(borderLeftColor)
borderLeftColor = this._getBinaryColor(borderLeftColor);
else
borderLeftColor = 0;
borderStyleName = this._getBorderStyleName(borderLeftStyle, borderLeftWidth); borderStyleName = this._getBorderStyleName(borderLeftStyle, borderLeftWidth);
if (null !== borderStyleName) { if (null !== borderStyleName) {
...@@ -1404,10 +1416,14 @@ ...@@ -1404,10 +1416,14 @@
if(borderRightStyle == '') if(borderRightStyle == '')
borderRightStyle = tmpBorderStyle; borderRightStyle = tmpBorderStyle;
/*var borderRightColor = node.style.borderRightColor; var borderRightColor = node.style.borderRightColor;
if(borderRightColor == '') if(borderRightColor == '')
borderRightColor = $(node).css('border-right-color'); */ borderRightColor = $(node).css('border-right-color');
var borderRightColor = 0;
if(borderRightColor)
borderRightColor = this._getBinaryColor(borderRightColor);
else
borderRightColor = 0;
borderStyleName = this._getBorderStyleName(borderRightStyle, borderRightWidth); borderStyleName = this._getBorderStyleName(borderRightStyle, borderRightWidth);
if (null !== borderStyleName) { if (null !== borderStyleName) {
......
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