Commit 7d383cfb authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

$.browser["mozilla"] -> AscBrowser.isMozilla

$.browser['msie'] -> AscBrowser.isIE

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@53544 954022d7-b5bf-4e40-9824-e11837661b57
parent 8d0b946b
...@@ -305,7 +305,7 @@ ...@@ -305,7 +305,7 @@
History.TurnOn(); History.TurnOn();
if($.browser["mozilla"]) if(AscBrowser.isMozilla)
t._selectElement(t._getStylesSelect); t._selectElement(t._getStylesSelect);
else else
t._selectElement(); t._selectElement();
...@@ -387,7 +387,7 @@ ...@@ -387,7 +387,7 @@
//****paste cells **** //****paste cells ****
pasteRange: function (worksheet) { pasteRange: function (worksheet) {
var t = this; var t = this;
if($.browser["mozilla"]) if(AscBrowser.isMozilla)
t._editorPaste(worksheet,t._getStylesSelect); t._editorPaste(worksheet,t._getStylesSelect);
else else
t._editorPaste(worksheet); t._editorPaste(worksheet);
...@@ -462,7 +462,7 @@ ...@@ -462,7 +462,7 @@
function(node){ function(node){
t.element.appendChild(node); t.element.appendChild(node);
}); });
if($.browser["mozilla"]) if(AscBrowser.isMozilla)
t._selectElement(t._getStylesSelect); t._selectElement(t._getStylesSelect);
else else
t._selectElement(); t._selectElement();
...@@ -552,7 +552,7 @@ ...@@ -552,7 +552,7 @@
doc.body.style.MozUserSelect = "text"; doc.body.style.MozUserSelect = "text";
var _interval_time = 0; var _interval_time = 0;
if($.browser["mozilla"]) if(AscBrowser.isMozilla)
_interval_time = 10; _interval_time = 10;
// ждем выполнения // ждем выполнения
window.setTimeout( window.setTimeout(
...@@ -572,7 +572,7 @@ ...@@ -572,7 +572,7 @@
// for paste event // for paste event
if(callback) if(callback)
callback(textInsert, []); callback(textInsert, []);
if($.browser["mozilla"]) if(AscBrowser.isMozilla)
t._getStylesSelect(); t._getStylesSelect();
}, },
_interval_time); _interval_time);
...@@ -2119,7 +2119,7 @@ ...@@ -2119,7 +2119,7 @@
} }
if(t.copyText.text && AscBrowser.isOpera && node.text.replace(/(\r|\t|\n| |\s)/g, "") == t.copyText.text.replace(/(\r|\t|\n| |\s)/g, "")) if(t.copyText.text && AscBrowser.isOpera && node.text.replace(/(\r|\t|\n| |\s)/g, "") == t.copyText.text.replace(/(\r|\t|\n| |\s)/g, ""))
return true; return true;
if($.browser['msie'] && t.copyText.text != undefined && node.text != undefined && node.text == "" && t.copyText.isImage) if(AscBrowser.isIE && t.copyText.text != undefined && node.text != undefined && node.text == "" && t.copyText.isImage)
return true; return true;
if(t.copyText.text != undefined && node.text != undefined && node.text == t.copyText.text) if(t.copyText.text != undefined && node.text != undefined && node.text == t.copyText.text)
{ {
......
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