mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
c7a103c0dc
commit
4bb0ef5aca
@ -100,14 +100,10 @@ HasManyFileFieldUploadButton.prototype = {
|
||||
ids = serverData.match(idregex);
|
||||
fileid = ids[1];
|
||||
|
||||
console.log(serverData);
|
||||
|
||||
nameregex = /\/\* Names: ([^\s]+) \*\//;
|
||||
names = serverData.match(nameregex);
|
||||
name = names[1];
|
||||
|
||||
console.log(name);
|
||||
|
||||
fieldid = this.parentNode.parentNode.id;
|
||||
list = this.parentNode.parentNode.list;
|
||||
|
||||
|
@ -60,9 +60,7 @@ TableField.prototype = {
|
||||
|| params["childID"] <= 0 || (recordID <= 0 || recordID == false)
|
||||
){
|
||||
if( row.parentNode.getElementsByTagName('tr').length > 1 ) {
|
||||
try { Effect.FadeOut(row); } catch (e) {
|
||||
//console.log(e);
|
||||
}
|
||||
Effect.FadeOut(row);
|
||||
} else {
|
||||
// clear all fields in the row
|
||||
var fields = row.getElementsByTagName('input');
|
||||
@ -122,7 +120,6 @@ TableField.prototype = {
|
||||
for(var i = 0; i < elements.length;i++){
|
||||
if(elements[i].type != "hidden"){
|
||||
if(elements[i].value != null && elements[i].value != ""){
|
||||
//console.log(elements[i].id + ' has value');
|
||||
isEmpty = false;
|
||||
}
|
||||
}
|
||||
|
@ -86,10 +86,7 @@ function getFittingHeight(el, tweakVal, ignoreElements) {
|
||||
tweakVal += getDimension(el.parentNode,'borderTopWidth');
|
||||
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) {
|
||||
return 0;
|
||||
}else{
|
||||
|
1
javascript/tiny_mce_improvements.js
vendored
1
javascript/tiny_mce_improvements.js
vendored
@ -156,7 +156,6 @@ LinkForm.prototype = {
|
||||
if(data) {
|
||||
for(i in data) {
|
||||
if(this.elements[i]) {
|
||||
// console.log('setting ' + i + ' to ' + this.elements[i] );
|
||||
Form.Element.setValue(this.elements[i], data[i]);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user