Skip to content

Commit 8d2bbff

Browse files
author
Seth Falcon
committed
Remove logging from js
1 parent 392309a commit 8d2bbff

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

‎chef-server-webui/public/javascripts/cookbook_constraint_ctrl.js‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
function jQuerySuggest(timestamp){
22
var cb_name = retrieveCbName(timestamp);
33
populateVersionBoxContent(timestamp, cb_name);
4-
document.getElementById("cookbook_version_" + timestamp).value = "0.0.0";
4+
$("cookbook_version_" + timestamp).value = "0.0.0";
55
}
66

77
function populateVersionBoxContent(timestamp, cb_name){
88
// Ignore environments when editing the environments constraints
99
$.getJSON('/cookbooks/'+cb_name+'?num_versions=all&ignore_environments=true',
1010
function(result){
11-
console.log("result");
12-
console.log(result);
1311
var versions = $.map(result[cb_name],
1412
function(item, i) {
1513
return item["version"];
@@ -23,7 +21,9 @@ function clearVersionBox(box, timestamp){
2321
$('#invalid_version_error_' + timestamp).remove();
2422
}
2523

26-
function validateVersionBoxValue(box, timestamp) {
24+
function validateVersionBoxValue(box, timestamp) {
25+
// a short delay prevents validation from firing
26+
// when user clicks on one of the suggestions.
2727
setTimeout(function() {
2828
var msg_class = 'invalid_version_error';
2929
var msg_id = 'invalid_version_error_' + timestamp;

‎chef-server-webui/public/javascripts/cookbook_versions.js‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ function cookbook_versions_show_more() {
1313
}
1414

1515
function cookbook_versions_show_less() {
16-
console.log($(this));
1716
var cookbook = $(this).attr("data");
1817
var version_list = $("#" + cookbook + "_versions");
1918
version_list.children('.other_version').hide();

0 commit comments

Comments
 (0)