Changeset 513
- Timestamp:
- 11/03/08 15:24:45 (2 months ago)
- Files:
-
- trunk/ui/web/htdocs/js/recon.js (modified) (1 diff)
- trunk/ui/web/htdocs/worksheet_panel.inc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/ui/web/htdocs/js/recon.js
r511 r513 37 37 function(options) { 38 38 if(this.length > 1) { 39 this.each(function(i) { $(this).ReconGraphRefresh( ); });39 this.each(function(i) { $(this).ReconGraphRefresh(options); }); 40 40 return this; 41 41 } trunk/ui/web/htdocs/worksheet_panel.inc
r511 r513 18 18 o.ReconGraphRefresh(); 19 19 } 20 ul.sortable({ handle: '.graphTitle', 21 scroll: true, 22 stop: 23 function (e,ui) { 24 var ol = new Array(); 25 ui.item.parent().find("> li > div").each( 26 function(i) { ol.push($(this).attr("id")); } 27 ); 28 // Store new worksheet order here 29 console.log(ol); 30 } 31 }); 20 ul.sortable("refresh"); 32 21 } 33 22 function add_graph_to_worksheet(graphid) { … … 40 29 ul.append($('<li/>').append(o)); 41 30 o.ReconGraphRefresh(); 31 ul.sortable("refresh"); 42 32 } 43 33 function refresh_worksheet() { … … 106 96 $("#ws-tool-error").fadeOut("slow"); 107 97 }); 98 var ul = $("ul#worksheet-graphs"); 99 ul.sortable({ handle: '.graphTitle', 100 scroll: true, 101 stop: 102 function (e,ui) { 103 var ol = new Array(); 104 ui.item.parent().find("> li > div").each( 105 function(i) { ol.push($(this).attr("id")); } 106 ); 107 // Store new worksheet order here 108 console.log(ol); 109 } 110 }); 108 111 }); 109 112 </script>
