}
if (action.type == 'load') {
_this.dialog.el.unmask();
+
+ _this.form.findField('bodytext').originalValue = _this.form.findField('bodytext').getValue();
+
return;
}
if (action.type =='submit') {
Roo.log('body dirty, auto save!');
body.fireEvent('autosave', body);
-
},
clearUp : false,
Roo.log('autosave');
var id = _this.form.findField('id').getValue() * 1;
+
/*
if(!_self.editorcore.sourceEditMode){
_self.syncValue();
_self.pushValue();
}
*/
+
new Pman.Request({
url : baseURL + '/Roo/Events.php',
method :'POST',
},
failure : function()
{
- //Roo.MessageBox.alert("Error", "autosave failed");
Roo.log('body autosave failed?!');
}
});
},
savedpreview : function (_self)
{
- Roo.log('saved preview');
-
var id = _this.form.findField('id').getValue() * 1;
var successFn = function(res){
xtype : 'Separator'
},
{
+ cls : 'x-init-enable',
text : _this._strings['bd88a20b53a47f7b5704a83a15ff5506'] /* Saved Version */,
xns : Roo.Toolbar,
'|xns' : 'Roo.Toolbar',
click : function (_self, e)
{
this.scope.owner.fireEvent('savedpreview', this.scope.owner);
+
}
}
}