summaryrefslogtreecommitdiff
path: root/chef-server-webui
diff options
context:
space:
mode:
authorNuo Yan <nuo@opscode.com>2011-02-07 15:56:16 -0800
committerNuo Yan <nuo@opscode.com>2011-02-07 15:56:16 -0800
commitc7e4003091a1dbd67648dccb1da9555515b65396 (patch)
treea8fd1465b8c4c4503b6b017557d19d680de19c14 /chef-server-webui
parent362474876da2e5e12a2b3e0b034f94d088cf44a0 (diff)
parent6210ef1ff17175c4c8ccd54ef5603b3e8ef9e3ad (diff)
downloadchef-c7e4003091a1dbd67648dccb1da9555515b65396.tar.gz
Merge branch 'CHEF-1999'
Diffstat (limited to 'chef-server-webui')
-rw-r--r--chef-server-webui/public/javascripts/cookbook_constraint_ctrl.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/chef-server-webui/public/javascripts/cookbook_constraint_ctrl.js b/chef-server-webui/public/javascripts/cookbook_constraint_ctrl.js
index 55ae741ae3..5c26067650 100644
--- a/chef-server-webui/public/javascripts/cookbook_constraint_ctrl.js
+++ b/chef-server-webui/public/javascripts/cookbook_constraint_ctrl.js
@@ -19,7 +19,7 @@ function clearVersionBox(box, timestamp){
}
function validateVersionBoxValue(box, timestamp){
- if (box.value.match(/\d+\.\d+\.\d+$/) == null){
+ if (box.value.match(/^\d+\.\d+\.\d+$/) == null){
if (box.value.length != 0 && document.getElementById('inline_error_message_' + timestamp) == null)
$(box).parent().append('<span class="inline_error_message" id="inline_error_message_' + timestamp + '" >Invalid version format. The version should be in the format of 0.0.0.</span>');
if (box.value.length==0)