/adei/ui

To get this branch, use:
bzr branch http://darksoft.org/webbzr/adei/ui

« back to all changes in this revision

Viewing changes to ui/includes/JavaScripts/userAreaModules/MaskOperations/CreateNewMask.js

  • Committer: Aram Yeghikyan
  • Date: 2008-12-02 13:00:06 UTC
  • Revision ID: eghikyan@gmail.com-20081202130006-2786zkp6xe9njsd2
Axis and other staff

Show diffs side-by-side

added added

removed removed

Lines of Context:
126
126
    }
127
127
    function loadVGroupElementsForEdit(json){
128
128
        removeAllFromGrid();
129
 
        // Uncheck all the nodes in tree
 
129
        // Uncheck all the nodes in the left tree
130
130
        checkedNodes = treeTimeSeries.getChecked();
131
131
        for(i=0; i<checkedNodes.length; i++){
132
132
            checkedNodes[i].getUI().toggleCheck();
159
159
            treeTimeSeries.expandPath(
160
160
                pathsArray[i],
161
161
                '',
162
 
                function(){
 
162
                function(success, lastNode){
163
163
                    numberOfLoadedElements++
164
164
                    if(numberOfLoadedElements == pathsArray.length){
165
165
                        for(j=0; j<json.IDs.length; j++){
166
166
                            treeTimeSeries.getNodeById(json.IDs[j]).getUI().toggleCheck(true);
167
167
                        }
168
168
                        addSelectedTimeSeriesToGrid();
 
169
                        setAxisOfGrid(json);
169
170
                    }
170
171
                }
171
172
            );
172
173
        }
173
174
    }
 
175
    function setAxisOfGrid(json){
 
176
        //alert(storeDataArray);
 
177
        out = "";
 
178
        for(i=0; i<json.IDs.length; i++){
 
179
            for(j=0; j<storeDataArray.length; j++){
 
180
                if(storeDataArray[j][7] == json.IDs[i]){
 
181
                    storeDataArray[j][6] = myData[json.AxisIds[i]][1];
 
182
                    store.removeAll()
 
183
                    store.loadData(storeDataArray);
 
184
                }
 
185
            }
 
186
        }
 
187
    }
 
188
 
174
189
    function saveTimeSeriesfunction(saveType){
175
190
        checkedNodes = treeTimeSeries.getChecked();
176
191
        saveType = saveType || "Save";
197
212
        store.each(
198
213
            function(record){
199
214
                columnName = record.get("Column");
200
 
                jsonObj.IDs.push(currentTimeSeriesInGrid[record.get("ID")]);
 
215
                jsonObj.IDs.push(record.get("treeId"));
201
216
                jsonObj.Axis.push(parseInt(axisAssociativeArray[record.get("Axis")]));
202
217
            }
203
218
        );