Changeset 504c244aab3b3a41bd8cde575384557c0053bee8
- Timestamp:
- 06/11/09 15:20:00
(4 years ago)
- Author:
- Umar Farooq <umar@omniti.com>
- git-committer:
- Umar Farooq <umar@omniti.com> 1244733600 +0000
- git-parent:
[dba783fd8de4462aac3926d4fcfb4806f6433571]
- git-author:
- Umar Farooq <umar@omniti.com> 1244733600 +0000
- Message:
dont include TEXT placeholders in graph genesis, refs #112
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rdba783f |
r504c244 |
|
| 197 | 197 | gtitles+="\\n"+graphs[i].title |
|---|
| 198 | 198 | } |
|---|
| 199 | | confirm("Found existing graphs made from this template:<p><textarea rows='10' disabled style='border:none;'>"+gtitles+"</textarea><p> continue and update these?", |
|---|
| | 199 | confirm("Found existing graphs made from this template:<p><textarea rows='10' disabled style='width: 100%; border:none;'>"+gtitles+"</textarea><p> continue and update these?", |
|---|
| 200 | 200 | function () { |
|---|
| 201 | 201 | $.ajax({ |
|---|
| rdba783f |
r504c244 |
|
| 14 | 14 | $genesis_base = "templateid=".$templateid; |
|---|
| 15 | 15 | |
|---|
| | 16 | |
|---|
| 16 | 17 | foreach ($text_vars as $tv) { |
|---|
| 17 | 18 | $rparams[$tv] = $_POST[$tv]; |
|---|
| 18 | | $genesis_base.=$tv."=".$_POST[$tv]; |
|---|
| 19 | 19 | } |
|---|
| 20 | 20 | |
|---|
| … | … | |
| 30 | 30 | //this function will create each combination of values for each SID placeholder, against the TEXT placeholders set |
|---|
| 31 | 31 | //then, it will create graphs for each of these combinations, updating a graph if one already exists with the same genesis |
|---|
| 32 | | //a graph's genesis is composed of its templateid, its text vars and their values, and its sid vars and their values, and |
|---|
| 33 | | //should be unique among saved_graphs |
|---|
| | 32 | //a graph's genesis is composed of its templateid and its sid vars and their values, and should be unique among saved_graphs |
|---|
| 34 | 33 | function createGraphsFromCombos($combo, $var_vals, $i, $sid_vars, $genesis_base, $rparams, $templateid, $graph_num, $update) |
|---|
| 35 | 34 | { |
|---|