mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
MINOR Removed unnecessary console.*() from cms javascript files
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@101754 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
97a0abb2cc
commit
a59fcdd430
@ -606,9 +606,6 @@ ChangeTracker.prototype = {
|
||||
|
||||
if(!element.isChanged) element.isChanged = this.field_changed;
|
||||
if(!this.changeDetection_fieldsToIgnore[element.name] && element.isChanged()) {
|
||||
//console.log('Changed:'+ element.id + '(' + this.originalSerialized +')->('+Form.Element.serialize(element)+')' );
|
||||
//console.log(element)
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -63,19 +63,14 @@ WidgetAreaEditorClass.prototype = {
|
||||
if (!widget.getAttribute('rewritten') && (widget.id || widget.name)) {
|
||||
if (widget.id && widget.id.indexOf('Widget[') === 0) {
|
||||
var newValue = widget.id.replace(/Widget\[/, 'Widget['+name+'][');
|
||||
//console.log('Renaming '+widget.tagName+' ID '+widget.id+' to '+newValue);
|
||||
widget.id = newValue;
|
||||
}
|
||||
if (widget.name && widget.name.indexOf('Widget[') === 0) {
|
||||
var newValue = widget.name.replace(/Widget\[/, 'Widget['+name+'][');
|
||||
//console.log('Renaming '+widget.tagName+' Name '+widget.name+' to '+newValue);
|
||||
widget.name = newValue;
|
||||
}
|
||||
widget.setAttribute('rewritten', 'yes');
|
||||
}
|
||||
else {
|
||||
//console.log('Skipping '+(widget.id ? widget.id : (widget.name ? widget.name : 'unknown '+widget.tagName)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user