From 67fd7e2567009a8bc6eb605e18587efc9b7047c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Fri, 16 Apr 2010 09:54:19 +0200 Subject: [PATCH] CURRENT_TIMESTAMP is also valid for DATETIME. --- js/tbl_change.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/js/tbl_change.js b/js/tbl_change.js index 60b75d192..953959101 100644 --- a/js/tbl_change.js +++ b/js/tbl_change.js @@ -183,14 +183,14 @@ function Validator(urlField, multi_edit,theType){ else if(theType=="datetime"||theType=="timestamp") { tmstmp=false; + if(dt.value=="CURRENT_TIMESTAMP") + { + dt.className=""; + return true; + } if(theType=="timestamp") { tmstmp=true; - if(dt.value=="CURRENT_TIMESTAMP") - { - dt.className=""; - return true; - } } if(dt.value=="0000-00-00 00:00:00") return true;