فهرست منبع

tabindex und pos_id

robert 2 سال پیش
والد
کامیت
133c4a4902
3فایلهای تغییر یافته به همراه7 افزوده شده و 7 حذف شده
  1. 2 2
      mobile/config.html
  2. 4 4
      mobile/index.php
  3. 1 1
      mobile/js/live_w_locator.js

+ 2 - 2
mobile/config.html

@@ -23,7 +23,7 @@
 
     <form action="/mobile" method="GET">
         Wäscheklammer: 
-        <select name="seller_id">
+        <select name="pos_id">
             <option value="1">rot</option>
             <option value="2">gelb</option>
             <option value="3">blau</option>
@@ -34,7 +34,7 @@
             <option value="8">violett</option>
             <option value="9">orange</option>
         </select><br/><br/>
-        Name:
+        Kassierer Name:
         <input type="text" name="cashier" /><br/><br/>
         <input type="submit" value="senden" />
     </form>

+ 4 - 4
mobile/index.php

@@ -1,7 +1,7 @@
 
 <?php
-  if (!isset($_GET['seller_id'])) {
-    header("Location: config.html");
+  if (!isset($_GET['pos_id'])) {
+    header("Location: {$_SERVER['HTTP_ORIGIN']}/mobile/config.html");
     exit();
   }
 ?>
@@ -35,8 +35,8 @@
                 <div id="interactive" class="viewport"></div>
                 <div id="manual_entry">
                     Manuell: 
-                    <input type="number" id="manual_code" step="0.001" placeholder="000.000"/>
-                    <button id="snapshot">
+                    <input type="number" id="manual_code" step="0.001" placeholder="000.000" tabindex="-1" />
+                    <button id="snapshot" tabindex="-1" >
                         <i class="glyphicon glyphicon-camera"></i>
                     </button>
                 </div>

+ 1 - 1
mobile/js/live_w_locator.js

@@ -176,7 +176,7 @@ $(function() {
                 var $node = null, canvas = Quagga.canvas.dom.image;
     
                 $node = $('<li><div class="thumbnail">' +
-                    '<div class="close"><button type="button" class="btn-close" aria-label="entfernen"></button></div>' +
+                    '<div class="close"><button type="button" class="btn-close" aria-label="entfernen" tabindex="-1"></button></div>' +
                     '<div class="imgWrapper"><img /></div>' +
                     '<div class="caption"><h4 class="code"></h4></div>' +
                     '<div class="price"><input type="number" size="5" step="0.1"/></div>' +