Picked = Green + fix null quantity => 0.
[order_line_extra.git] / item_schedule.php
index 9ce95fc8c661924f6d826956f08438cbb472922a..9eac399baa1838faa43ca7e42e27c7bd1f31b26e 100644 (file)
@@ -112,7 +112,12 @@ tr.partial  td:nth-child(5) {
        background: pink;
 }
 
+
 tr.location {
+       font-weight: normal;
+               background: #bbb;
+}
+tr.picked {
        font-weight: normal;
                background: #8f8;
 }
@@ -146,7 +151,7 @@ tr.tDnD_whileDrag :nth-child(4), tr.tDnD_whileDrag :nth-child(5) {
 }
 
 span.picked {
-       color: darkred;
+       color: black;
        font-weight: bold;
 }
 
@@ -187,6 +192,15 @@ span.partial  {
                
        }
 
+       function onPick(element) {
+               /* horible hack but it works */
+               /* in the way it call an Ajax request */
+               var row = $(element).closest('tr')[0];
+               var table = $(element).closest('table')[0];
+               onDrop(table, row);
+               
+       }
+
        var inserts = {
                '#item_schedule table': function (e) { 
                        $(e).tableDnD({onDragStart: onDragStart, onDrop: onDrop})