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

рефакторинг

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@59284 954022d7-b5bf-4e40-9824-e11837661b57
parent 44350ea1
...@@ -13,7 +13,6 @@ var gUndoInsDelCellsFlag = true; ...@@ -13,7 +13,6 @@ var gUndoInsDelCellsFlag = true;
* ----------------------------------------------------------------------------- * -----------------------------------------------------------------------------
*/ */
var prot; var prot;
var turnOnProcessingSpecSymbols = true;
var startRedo = false; var startRedo = false;
function AutoFiltersOptionsElements (val, visible) { function AutoFiltersOptionsElements (val, visible) {
...@@ -3534,10 +3533,11 @@ var gUndoInsDelCellsFlag = true; ...@@ -3534,10 +3533,11 @@ var gUndoInsDelCellsFlag = true;
var valLog = []; var valLog = [];
valLog[0] = conFilter.valFilter1; valLog[0] = conFilter.valFilter1;
valLog[1] = conFilter.valFilter2; valLog[1] = conFilter.valFilter2;
var trueStr;
//пока в случае появления спецсимволов, игнорируем их //пока в случае появления спецсимволов, игнорируем их
var turnOnAllSym = true; var trueStr;
if(!turnOnAllSym && valLog[0] && typeof valLog[0] == "string" && (valLog[0].split("?").length > 1 || valLog[0].split("*").length > 1) && (conFilter.filterDisableSpecSymbols1 || this._getPositionSpecSymbols(valLog[0]) != null)) if(false && valLog[0] && typeof valLog[0] == "string" && (valLog[0].split("?").length > 1 || valLog[0].split("*").length > 1) && (conFilter.filterDisableSpecSymbols1 || this._getPositionSpecSymbols(valLog[0]) != null))
{ {
trueStr = ""; trueStr = "";
for(var i = 0; i < valLog[0].length; i++) for(var i = 0; i < valLog[0].length; i++)
...@@ -3547,7 +3547,7 @@ var gUndoInsDelCellsFlag = true; ...@@ -3547,7 +3547,7 @@ var gUndoInsDelCellsFlag = true;
} }
valLog[0] = trueStr; valLog[0] = trueStr;
} }
if(!turnOnAllSym && typeof valLog[1] == "string" && valLog[1] && (valLog[1].split("?").length > 1 || valLog[1].split("*").length > 1) && (conFilter.filterDisableSpecSymbols1 || this._getPositionSpecSymbols(valLog[1]) != null)) if(false && typeof valLog[1] == "string" && valLog[1] && (valLog[1].split("?").length > 1 || valLog[1].split("*").length > 1) && (conFilter.filterDisableSpecSymbols1 || this._getPositionSpecSymbols(valLog[1]) != null))
{ {
trueStr = ""; trueStr = "";
for(var i = 0; i < valLog[1].length; i++) for(var i = 0; i < valLog[1].length; i++)
...@@ -6613,8 +6613,6 @@ var gUndoInsDelCellsFlag = true; ...@@ -6613,8 +6613,6 @@ var gUndoInsDelCellsFlag = true;
//проверка на предмет наличия спец. символов ? и * //проверка на предмет наличия спец. символов ? и *
_isSpecValueCustomFilter: function(autoFiltersOptions) _isSpecValueCustomFilter: function(autoFiltersOptions)
{ {
if(!turnOnProcessingSpecSymbols)
return;
var filters = [autoFiltersOptions.filter1,autoFiltersOptions.filter2]; var filters = [autoFiltersOptions.filter1,autoFiltersOptions.filter2];
var valFilters = [autoFiltersOptions.valFilter1,autoFiltersOptions.valFilter2]; var valFilters = [autoFiltersOptions.valFilter1,autoFiltersOptions.valFilter2];
var filterVal; var filterVal;
...@@ -6676,8 +6674,7 @@ var gUndoInsDelCellsFlag = true; ...@@ -6676,8 +6674,7 @@ var gUndoInsDelCellsFlag = true;
_getPositionSpecSymbols: function(filterVal) _getPositionSpecSymbols: function(filterVal)
{ {
var position = null; var position = null;
if(!turnOnProcessingSpecSymbols)
return position;
var firstLetter; var firstLetter;
var firstSpecSymbol; var firstSpecSymbol;
var endLetter; var endLetter;
...@@ -6717,8 +6714,7 @@ var gUndoInsDelCellsFlag = true; ...@@ -6717,8 +6714,7 @@ var gUndoInsDelCellsFlag = true;
_parseComplexSpecSymbols: function(val, filter, filterVal, type) _parseComplexSpecSymbols: function(val, filter, filterVal, type)
{ {
var result = null; var result = null;
if(!turnOnProcessingSpecSymbols)
return result;
if(filterVal != undefined && filter != undefined && (filterVal.indexOf("?") != -1 || filterVal.indexOf("*") != -1)) if(filterVal != undefined && filter != undefined && (filterVal.indexOf("?") != -1 || filterVal.indexOf("*") != -1))
{ {
var isEqual = false; var isEqual = false;
......
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