From 3e69ae71991dbc00e8aa4fd90026334e3d88dc48 Mon Sep 17 00:00:00 2001 From: franzz Date: Sat, 29 Aug 2015 12:00:57 +0200 Subject: [PATCH] fixing date picker for Tuesday/Wednesday --- script/ugc.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/script/ugc.js b/script/ugc.js index 051135d..db599ce 100755 --- a/script/ugc.js +++ b/script/ugc.js @@ -461,9 +461,8 @@ function Settings() var $Select = $('#ugc_dates').find('select'); var $List = $('#ugc_days'); var iCount = 0; - while(oNextDay.getDay() != 3) + while(oNextDay.getDay()!=3 || iCount==0) { - if(iCount>5) break; var iTimestamp = this.timestamp(oNextDay); switch(iCount) {