MINOR Removed unnecessary console.*() from sapphire javascript files

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@101753 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-03-28 20:06:01 +00:00 committed by Sam Minnee
parent c7a103c0dc
commit 4bb0ef5aca
4 changed files with 2 additions and 13 deletions

View File

@ -100,14 +100,10 @@ HasManyFileFieldUploadButton.prototype = {
ids = serverData.match(idregex); ids = serverData.match(idregex);
fileid = ids[1]; fileid = ids[1];
console.log(serverData);
nameregex = /\/\* Names: ([^\s]+) \*\//; nameregex = /\/\* Names: ([^\s]+) \*\//;
names = serverData.match(nameregex); names = serverData.match(nameregex);
name = names[1]; name = names[1];
console.log(name);
fieldid = this.parentNode.parentNode.id; fieldid = this.parentNode.parentNode.id;
list = this.parentNode.parentNode.list; list = this.parentNode.parentNode.list;

View File

@ -60,9 +60,7 @@ TableField.prototype = {
|| params["childID"] <= 0 || (recordID <= 0 || recordID == false) || params["childID"] <= 0 || (recordID <= 0 || recordID == false)
){ ){
if( row.parentNode.getElementsByTagName('tr').length > 1 ) { if( row.parentNode.getElementsByTagName('tr').length > 1 ) {
try { Effect.FadeOut(row); } catch (e) { Effect.FadeOut(row);
//console.log(e);
}
} else { } else {
// clear all fields in the row // clear all fields in the row
var fields = row.getElementsByTagName('input'); var fields = row.getElementsByTagName('input');
@ -122,7 +120,6 @@ TableField.prototype = {
for(var i = 0; i < elements.length;i++){ for(var i = 0; i < elements.length;i++){
if(elements[i].type != "hidden"){ if(elements[i].type != "hidden"){
if(elements[i].value != null && elements[i].value != ""){ if(elements[i].value != null && elements[i].value != ""){
//console.log(elements[i].id + ' has value');
isEmpty = false; isEmpty = false;
} }
} }

View File

@ -86,10 +86,7 @@ function getFittingHeight(el, tweakVal, ignoreElements) {
tweakVal += getDimension(el.parentNode,'borderTopWidth'); tweakVal += getDimension(el.parentNode,'borderTopWidth');
tweakVal += getDimension(el.parentNode,'borderBottomWidth'); tweakVal += getDimension(el.parentNode,'borderBottomWidth');
} }
//console.log(el.id + ': ' + el.parentNode.id+'.offsetHeight=' + el.parentNode.offsetHeight
// + ', otherHeight=' + otherHeight + ', tweakVal=' + tweakVal)
if(el.parentNode && el.parentNode.offsetHeight - otherHeight - tweakVal < 0) { if(el.parentNode && el.parentNode.offsetHeight - otherHeight - tweakVal < 0) {
return 0; return 0;
}else{ }else{

View File

@ -156,7 +156,6 @@ LinkForm.prototype = {
if(data) { if(data) {
for(i in data) { for(i in data) {
if(this.elements[i]) { if(this.elements[i]) {
// console.log('setting ' + i + ' to ' + this.elements[i] );
Form.Element.setValue(this.elements[i], data[i]); Form.Element.setValue(this.elements[i], data[i]);
} }
} }