Commit 55cb63a9 authored by Ilya.Kirillov's avatar Ilya.Kirillov Committed by Alexander.Trofimov

Исправлен баг с ToolTip гиперссылки в совместном редактировании.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@51015 954022d7-b5bf-4e40-9824-e11837661b57
parent fe54519c
......@@ -6852,7 +6852,7 @@ function ParaHyperlinkStart()
this.Value = "";
this.Visited = false;
this.ToolTip = null;
this.ToolTip = "";
// Добавляем данный класс в таблицу Id (обязательно в конце конструктора)
g_oTableId.Add( this, this.Id );
......@@ -7053,8 +7053,8 @@ ParaHyperlinkStart.prototype =
// String : ToolTip
this.ToolTip = Reader.GetString2();
if ( "" === this.ToolTip )
this.ToolTip = null;
//if ( "" === this.ToolTip )
// this.ToolTip = null;
break;
}
......@@ -7088,8 +7088,8 @@ ParaHyperlinkStart.prototype =
this.Value = Reader.GetString2();
this.ToolTip = Reader.GetString2();
if ( "" === this.ToolTip )
this.ToolTip = null;
//if ( "" === this.ToolTip )
// this.ToolTip = null;
},
Write_ToBinary : function(Writer)
......
......@@ -5279,13 +5279,13 @@ function CHyperlinkProperty( obj )
{
this.Text = (undefined != obj.Text ) ? obj.Text : null;
this.Value = (undefined != obj.Value ) ? obj.Value : "";
this.ToolTip = (undefined != obj.ToolTip) ? obj.ToolTip : null;
this.ToolTip = (undefined != obj.ToolTip) ? obj.ToolTip : "";
}
else
{
this.Text = null;
this.Value = "";
this.ToolTip = null;
this.ToolTip = "";
}
}
......
......@@ -1010,8 +1010,8 @@ $("#td_formatmodel,#td_info, #td_redo, #td_undo, #td_orient, #td_bold, #td_itali
//editor.WordControl.m_oLogicDocument.Document_CreateFontMap();
//Menu_Hyperlink_Add();
editor.WordControl.m_oLogicDocument.Add_DropCap();
Menu_Hyperlink_Add();
//editor.WordControl.m_oLogicDocument.Add_DropCap();
//editor.WordControl.m_oLogicDocument.Search_Start(String);
break;
......@@ -1760,7 +1760,7 @@ $(".colorWatch").mouseover(function(){
case c_oAscMouseMoveDataTypes.Hyperlink:
{
var Hyperlink = Data.Hyperlink;
var ToolTip = (Hyperlink.get_ToolTip() === null ? Hyperlink.get_Value() : Hyperlink.get_ToolTip() );
var ToolTip = (Hyperlink.get_ToolTip() === null || Hyperlink.get_ToolTip() === "" ? Hyperlink.get_Value() : Hyperlink.get_ToolTip() );
var X = Data.X_abs, Y = Data.Y_abs;
Hyperlink_Show( X, Y, ToolTip );
sendStatus(Data.Hyperlink.get_Value());
......@@ -3289,7 +3289,7 @@ $(".colorWatch").mouseover(function(){
oHyperlinkProp.put_Text( $("#hyperText").val() == "" ? null : $("#hyperText").val() );
}
oHyperlinkProp.put_ToolTip( $("#hyperToolTip").val() == "" ? null : $("#hyperToolTip").val() );
oHyperlinkProp.put_ToolTip( $("#hyperToolTip").val() );
oHyperlinkProp.put_Value( $("#hyperUrl").val() );
editor.change_Hyperlink( oHyperlinkProp );
......
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