Fixed problem with rebuilding the template after a submit not working correctly

This commit is contained in:
Andreas Stöckel 2012-03-01 10:13:12 +00:00
parent 2175421d42
commit 4440b4cd02
3 changed files with 7 additions and 5 deletions

View File

@ -111,7 +111,7 @@ abstract class etemplate_widget_transformer extends etemplate_widget
$unmodified = $attrs;
// run the transformation
foreach($this->transformation as $filter => $data)
foreach(static::$transformation as $filter => $data)
{
$this->action($filter, $data, $attrs);
}

View File

@ -76,8 +76,6 @@ var et2_link_to = et2_inputWidget.extend({
},
destroy: function() {
this._super.apply(this, arguments);
this.link_button = null;
this.status_span = null;
this.comment = null;
@ -87,6 +85,8 @@ var et2_link_to = et2_inputWidget.extend({
this.file_upload.destroy();
this.file_upload = null;
this.div = null;
this._super.apply(this, arguments);
},
/**
@ -762,7 +762,9 @@ var et2_link_string = et2_valueWidget.extend([et2_IDetachedDOM], {
destroy: function() {
this._super.apply(this, arguments);
this.node.children().unbind();
if (this.node != null) {
this.node.children().unbind();
}
},
set_value: function(_value) {

View File

@ -96,7 +96,7 @@ var et2_template = et2_DOMWidget.extend({
this.proxiedTemplate.isProxy = true;
// Disallow adding any new node to this template
this.supportedWidgetClasses = [];
//this.supportedWidgetClasses = [];
}
},