1. Luke Plant
  2. seating-planner

Commits

Luke Plant  committed 9e283a4

Removed old copy-paste method for entering connections data

  • Participants
  • Parent commits a41316c
  • Branches default

Comments (0)

Files changed (2)

File static/connections.js

View file
         }
         m.push(l);
     }
-    $("#connections-matrix-controls").show();
-    $("#connections-raw-controls").hide();
     connectionsMatrix.loadData(m);
     return true;
 }
         }
     });
 
-    $("#show-raw-connections").click(function () {
-        $("#connections-matrix-controls").hide();
-        $("#connections-raw").val(getRawConnectionsData());
-        $("#connections-raw-controls").show();
-    });
-
-    $("#hide-raw-connections").click(function () {
-        $("#connections-matrix-controls").show();
-        $("#connections-raw-controls").hide();
-    });
-
-    $("#update-matrix").click(function () {
-        updateMatrixFromRaw();
-    });
-
     $("#download-connections").click(function (ev) {
         downloadConnections();
     });

File templates/index.html

View file
     </ul>
 
     <div id="connections-matrix-controls">
-      <h3>Matrix <input type="submit" id="show-raw-connections" value="Show raw connections data"></h3>
+      <h3>Matrix</h3>
 
       <div class="download-form">
         Download connection data:
 
 
       <div class="upload-form">
-        <form id="upload-form">
+        <form id="upload-form" method="POST">
           Upload connection data:
           <input type="file" id="upload-selector">
           <input type="submit" id="upload-connections" value="Upload">
       </table>
     </div>
 
-    <div id="connections-raw-controls" style="display: none;">
-      <h3>Data <input type="submit" id="hide-raw-connections" value="Hide raw data"></h3>
-      <textarea id="connections-raw" rows="20" cols="50">
-      </textarea>
-      <p><input type="submit" id="update-matrix" value="Update matrix"></p>
+    <div style="display: none;">
+      <textarea id="connections-raw" rows="20" cols="50"></textarea>
     </div>
 
     <h2>Parameters</h2>