From f4680cc25eb18f52ed3505c54497643277f425e9 Mon Sep 17 00:00:00 2001 From: Maxime Bourget Date: Sat, 15 Jun 2013 10:45:13 +0100 Subject: [PATCH] Picked = Green + fix null quantity => 0. --- haxe/ItemScheduler.hx | 2 +- hincludes/lib/ItemScheduler.class.php | 2 +- item_schedule.php | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/haxe/ItemScheduler.hx b/haxe/ItemScheduler.hx index 8a92d77..4799420 100644 --- a/haxe/ItemScheduler.hx +++ b/haxe/ItemScheduler.hx @@ -266,7 +266,7 @@ class ItemScheduler { if (user_pick == null) user_pick = 0; var inputs : Array = []; if(maxQuantity > 12) { - inputs.push(''+quantity+' '); + inputs.push(''+(quantity == null ? 0 : quantity)+' '); inputs.push(''); } else { diff --git a/hincludes/lib/ItemScheduler.class.php b/hincludes/lib/ItemScheduler.class.php index cc083f9..9e55a20 100644 --- a/hincludes/lib/ItemScheduler.class.php +++ b/hincludes/lib/ItemScheduler.class.php @@ -120,7 +120,7 @@ class ItemScheduler { } $inputs = new _hx_array(array()); if($maxQuantity > 12) { - $inputs->push("" . _hx_string_rec($quantity, "") . " "); + $inputs->push("" . _hx_string_rec(((($quantity === null) ? 0 : $quantity)), "") . " "); $inputs->push(""); } else { $inputs->push(""); diff --git a/item_schedule.php b/item_schedule.php index 9379528..9eac399 100644 --- a/item_schedule.php +++ b/item_schedule.php @@ -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; } -- 2.30.2