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

заглушка copy/paste Safari MAC(для того, чтобы сохранялась информация в аттрибуте class)

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@50133 954022d7-b5bf-4e40-9824-e11837661b57
parent 91960dec
...@@ -1650,6 +1650,11 @@ CopyProcessor.prototype = ...@@ -1650,6 +1650,11 @@ CopyProcessor.prototype =
{ {
this.oBinaryFileWriter.CopyEnd(); this.oBinaryFileWriter.CopyEnd();
var sBase64 = this.oBinaryFileWriter.GetResult(); var sBase64 = this.oBinaryFileWriter.GetResult();
if(this.ElemToSelect.children && this.ElemToSelect.children.length == 1 && window.USER_AGENT_SAFARI_MACOS)
{
$(this.ElemToSelect.children[0]).css("font-weight", "normal");;
$(this.ElemToSelect.children[0]).wrap(document.createElement("b"));
}
if(this.ElemToSelect.children[0]) if(this.ElemToSelect.children[0])
$(this.ElemToSelect.children[0]).addClass("docData;" + sBase64); $(this.ElemToSelect.children[0]).addClass("docData;" + sBase64);
} }
...@@ -1712,6 +1717,11 @@ CopyProcessor.prototype = ...@@ -1712,6 +1717,11 @@ CopyProcessor.prototype =
{ {
this.oBinaryFileWriter.CopyEnd(); this.oBinaryFileWriter.CopyEnd();
var sBase64 = this.oBinaryFileWriter.GetResult(); var sBase64 = this.oBinaryFileWriter.GetResult();
if(this.ElemToSelect.children && this.ElemToSelect.children.length == 1 && window.USER_AGENT_SAFARI_MACOS)
{
$(this.ElemToSelect.children[0]).css("font-weight", "normal");;
$(this.ElemToSelect.children[0]).wrap(document.createElement("b"));
}
if(this.ElemToSelect.children[0]) if(this.ElemToSelect.children[0])
$(this.ElemToSelect.children[0]).addClass("docData;" + sBase64); $(this.ElemToSelect.children[0]).addClass("docData;" + sBase64);
} }
...@@ -1830,6 +1840,11 @@ CopyProcessor.prototype = ...@@ -1830,6 +1840,11 @@ CopyProcessor.prototype =
} }
var sBase64 = this.oPresentationWriter.GetBase64Memory(); var sBase64 = this.oPresentationWriter.GetBase64Memory();
sBase64 = "" + this.oPresentationWriter.pos + ";" + sBase64; sBase64 = "" + this.oPresentationWriter.pos + ";" + sBase64;
if(this.ElemToSelect.children && this.ElemToSelect.children.length == 1 && window.USER_AGENT_SAFARI_MACOS)
{
$(this.ElemToSelect.children[0]).css("font-weight", "normal");;
$(this.ElemToSelect.children[0]).wrap(document.createElement("b"));
}
if(this.ElemToSelect.children[0]) if(this.ElemToSelect.children[0])
$(this.ElemToSelect.children[0]).addClass("docData;" + sBase64); $(this.ElemToSelect.children[0]).addClass("docData;" + sBase64);
} }
...@@ -1837,6 +1852,11 @@ CopyProcessor.prototype = ...@@ -1837,6 +1852,11 @@ CopyProcessor.prototype =
if(copyPasteUseBinery && this.oBinaryFileWriter.copyParams.itemCount > 0) if(copyPasteUseBinery && this.oBinaryFileWriter.copyParams.itemCount > 0)
{ {
var sBase64 = this.oBinaryFileWriter.GetResult(); var sBase64 = this.oBinaryFileWriter.GetResult();
if(this.ElemToSelect.children && this.ElemToSelect.children.length == 1 && window.USER_AGENT_SAFARI_MACOS)
{
$(this.ElemToSelect.children[0]).css("font-weight", "normal");;
$(this.ElemToSelect.children[0]).wrap(document.createElement("b"));
}
if(this.ElemToSelect.children[0]) if(this.ElemToSelect.children[0])
$(this.ElemToSelect.children[0]).addClass("docData;" + sBase64); $(this.ElemToSelect.children[0]).addClass("docData;" + sBase64);
} }
......
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