Show
Ignore:
Timestamp:
02/09/09 16:43:50 (5 years ago)
Author:
Umar Farooq <umar@omniti.com>
git-committer:
Umar Farooq <umar@omniti.com> 1234197830 +0000
git-parent:

[dbaf64bc41991ad1a538a17c4d9cfc5bab31e0a8]

git-author:
Umar Farooq <umar@omniti.com> 1234197830 +0000
Message:

ticket 81 - fixes worksheet save/edit issues

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • ui/web/htdocs/worksheet_panel.inc

    r7207aea r2f2d15a  
    6060  $("h2#worksheetTitle").unbind(); 
    6161  $("ul#worksheet-graphs").unbind(); 
     62  $("ul#worksheet-graphs > li >div").each(function(i) { $(this).unbind();}); 
    6263} 
    6364          
     
    9899                      $.getJSON('json/worksheet/deletegraph/' + wsinfo.id + '/' + g.graphid, 
    99100                        function(r) { if(r.error) { alert(r.error); } }); 
    100                         load_worksheet(wsinfo.id); 
     101                        $("#"+g.graphid).remove(); 
    101102                    }); 
    102103 
     
    217218function add_graph_to_worksheet(graphid) { 
    218219  if(!locked){ 
    219     for(var i = 0; i < wsinfo.graphs.length; i++) { 
     220    for(var i = 0; wsinfo.graphs && (i < wsinfo.graphs.length); i++) { 
    220221      if(wsinfo.graphs[i]==graphid) { 
    221222         alert("Worksheets cannot have dusplicate graphs!"); 
     
    236237    wsinfo.graphs.push(graphid); 
    237238    update_current_worksheet(); 
     239    unlock_wforms(); 
    238240  } 
    239241 
     
    266268<span class="rememberWorksheet"></span> 
    267269<span class="blankWorksheet">New Blank</span> 
    268 <span class="editWorksheet">Edit Worksheet</span> 
     270<span class="editWorksheet">Editing!</span> 
    269271<h2 id="worksheetTitle">Worksheet Title</h2> 
    270272<p/>