Changeset 504c244aab3b3a41bd8cde575384557c0053bee8

Show
Ignore:
Timestamp:
06/11/09 15:20:00 (5 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
  • ui/web/htdocs/template_browse_json.php

    rdba783f r504c244  
    197197               gtitles+="\\n"+graphs[i].title 
    198198             } 
    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?", 
    200200               function () { 
    201201                  $.ajax({ 
  • ui/web/htdocs/template_graph.php

    rdba783f r504c244  
    1414$genesis_base = "templateid=".$templateid; 
    1515 
     16 
    1617foreach ($text_vars as $tv) { 
    1718  $rparams[$tv] = $_POST[$tv]; 
    18   $genesis_base.=$tv."=".$_POST[$tv]; 
    1919} 
    2020 
     
    3030//this function will create each combination of values for each SID placeholder, against the TEXT placeholders set 
    3131//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    
    3433function createGraphsFromCombos($combo, $var_vals, $i, $sid_vars, $genesis_base, $rparams, $templateid, $graph_num, $update) 
    3534    {