Commit 241899cf authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

delete unused functions

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@55447 954022d7-b5bf-4e40-9824-e11837661b57
parent 934a1a28
......@@ -1604,7 +1604,7 @@
},
_getAutoComplete: function(str) {
// ToDo можно ускорить делая поиск каждый раз не в большом массиве, а в уменбшенном (по предыдущим символам)
// ToDo можно ускорить делая поиск каждый раз не в большом массиве, а в уменьшенном (по предыдущим символам)
var oLastResult = this.objAutoComplete[str];
if (oLastResult)
return oLastResult;
......@@ -1619,12 +1619,6 @@
return this.objAutoComplete[str] = arrResult;
},
_removeFormulaSelector: function() {
var selector = document.getElementById("formulaSelector");
if ( selector )
selector.parentNode.removeChild(selector);
},
_updateFormulaSelectorPosition: function() {
var selector = document.getElementById("formulaSelector");
if ( selector ) {
......@@ -1662,63 +1656,7 @@
}
}
},
_keyDownFormulaSelector: function (event) {
var _this = this;
var combo = document.getElementById("formulaList");
if ( combo ) {
var nodes = combo.childNodes;
switch (event.which) {
case 38: // Up
{
var selectedIndex = nodes.length;
for ( var i = 0; i < nodes.length; i++ ) {
if ( nodes[i].style["backgroundColor"] != "" ) {
selectedIndex = i;
nodes[i].style["backgroundColor"] = "";
break;
}
}
selectedIndex--;
if ( selectedIndex < 0 )
selectedIndex = 0;
nodes[selectedIndex].style["backgroundColor"] = _this.formulaSelectorColor;
}
break;
case 40: // Down
{
var selectedIndex = -1;
for ( var i = 0; i < nodes.length; i++ ) {
if ( nodes[i].style["backgroundColor"] != "" ) {
selectedIndex = i;
nodes[i].style["backgroundColor"] = "";
break;
}
}
selectedIndex++;
if ( selectedIndex >= nodes.length )
selectedIndex = nodes.length - 1;
nodes[selectedIndex].style["backgroundColor"] = _this.formulaSelectorColor;
}
break;
case 9: // Tab
{
for ( var i = 0; i < nodes.length; i++ ) {
if ( nodes[i].style["backgroundColor"] != "" ) {
var formulaName = nodes[i].innerText || nodes[i].textContent;
var insertText = formulaName.substring(_this.input.value.length - 1) + "(";
_this._addChars(insertText);
_this._removeFormulaSelector();
break;
}
}
}
break;
}
}
},
// Event handlers
/** @param event {jQuery.Event} */
......@@ -1747,7 +1685,6 @@
return false;
t.undoAll();
t.close();
t._removeFormulaSelector();
return false;
case 13: // "enter"
......
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