Commit f1639e2d 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@62530 954022d7-b5bf-4e40-9824-e11837661b57
parent e63210c5
......@@ -4541,7 +4541,7 @@ Filters.prototype.init = function(obj) {
for(var i = 0; i < obj.result.length; i++)
{
if(obj.result[i].visible)
this.Values[obj.result[i].val] = true;
this.Values[obj.result[i].text] = true;
else
allFilterOpenElements = false;
}
......@@ -4653,8 +4653,12 @@ CustomFilters.prototype.isHideValue = function(val){
return res;
};
CustomFilters.prototype.asc_getAnd = function () { return this.And; }
CustomFilters.prototype.asc_setAnd = function (val) { this.And = val; }
CustomFilters.prototype.asc_getAnd = function () { return this.And; };
CustomFilters.prototype.asc_getCustomFilters = function () { return this.CustomFilters; };
CustomFilters.prototype.asc_setAnd = function (val) { this.And = val; };
CustomFilters.prototype.asc_setCustomFilters = function (val) { this.CustomFilters = val; };
/** @constructor */
function CustomFilter(operator, val) {
......@@ -4896,6 +4900,7 @@ dateElem.prototype.clone = function() {
window["Asc"]["CustomFilters"] = window["Asc"].CustomFilters = CustomFilters;
prot = CustomFilters.prototype;
prot["asc_getAnd"] = prot.asc_getAnd;
prot["asc_getCustomFilters"] = prot.asc_getCustomFilters;
prot["asc_setAnd"] = prot.asc_setAnd;
window["Asc"]["CustomFilter"] = window["Asc"].CustomFilter = CustomFilter;
......
......@@ -791,6 +791,7 @@ var maxIndividualValues = 10000;
{
var aWs = this._getCurrentWS();
var containRangeId = -1, tableRange;
var tableParts = aWs.TableParts;
if(tableParts)
{
for(var i = 0; i < tableParts.length; ++i)
......@@ -805,8 +806,6 @@ var maxIndividualValues = 10000;
}
}
var tableParts = aWs.TableParts;
//если выделена часть форматир. таблицы, то отправляем -2
//если форматировання таблица содержит данный диапазон, то id
//если диапазон не затрагивает форматированную таблицу, то -1
......@@ -4786,6 +4785,8 @@ var maxIndividualValues = 10000;
prot["asc_setSortState"] = prot.asc_setSortState;
prot["asc_getSortState"] = prot.asc_getSortState;
prot["asc_getValues"] = prot.asc_getValues;
prot["asc_getFilter"] = prot.asc_getFilter;
window["Asc"]["AutoFilterObj"] = window["Asc"].AutoFilterObj = AutoFilterObj;
prot = AutoFilterObj.prototype;
......
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