]> jspc29.x-matter.uni-frankfurt.de Git - coral.git/commitdiff
added button to access ascii data of scan
authorMichael Wiebusch <m.wiebusch@gsi.de>
Mon, 23 Feb 2015 10:36:20 +0000 (11:36 +0100)
committerMichael Wiebusch <m.wiebusch@gsi.de>
Mon, 23 Feb 2015 10:36:20 +0000 (11:36 +0100)
user_interface/coral_scanner.js
user_interface/coral_scanner.pm

index db36b6c6051ba8ab337191a2bf62a5124b5cc887..9d37ed66a5a9fcb24dd94e5724f956228ee0ab5e 100644 (file)
@@ -73,6 +73,9 @@ $(document).ready(function(){
     store_slider_settings();
     get_scan_svg();
   });
+  $("#button_ascii").click(function(){
+    $(this).button();
+  });
   
   $("#button_program_padiwa").click(function(){
     apply_device_settings();
@@ -496,7 +499,6 @@ function load_settings(url){
 }
 
 
-
 function get_spectrum_JSON(){
   var return_obj;
   $.ajax({
index 1585783aed89d41d29943c08118fd37b3ee7ba74..abff5dcf71255ee9ecfdbf39be01f57a12663ca0 100644 (file)
@@ -126,7 +126,9 @@ sub main_html {
   print br;
   print '<div id="slider-range"></div>';
   print br;
-  print "<input type='button' value='replot' id='button_replot'>";
+  print "<input type='button' value='(re)plot' id='button_replot'>";
+  print "<a href='coral_scanner.pl?sub=scan_to_ascii' target='_blank' id='button_ascii'><input type='button'
+  value='scan to ascii'></a>";
   print br;
   print br;
   print "estimated scan duration: ".hms_string($self->scan_ETA());
@@ -489,8 +491,6 @@ sub scan_to_svg {
   
   my $scale = 12; # pixel per mm
   
-  # create an SVG object with a size of 40x40 pixels
-  
   my $pic_width  = ($sample_rect_size_x+5)*$scale;
   my $pic_height = 250;