fixed not being able to switch on encryption for new entries

This commit is contained in:
Ralf Becker 2015-08-19 13:28:33 +00:00
parent 98d874e048
commit 765d28ea21

View File

@ -78,7 +78,8 @@ app.classes.infolog = AppJS.extend(
}
break;
case 'infolog.edit':
if (this.et2.getArrayMgr('content').data.info_des.indexOf(this.begin_pgp_message) != -1)
if (this.et2.getArrayMgr('content').data.info_des &&
this.et2.getArrayMgr('content').data.info_des.indexOf(this.begin_pgp_message) != -1)
{
this._get_stylite(jQuery.proxy(function() {this.mailvelopeAvailable(jQuery.proxy(function() {
this.toggleEncrypt();
@ -89,7 +90,7 @@ app.classes.infolog = AppJS.extend(
$j(history.getDOMNode(history))
.tooltip('option','position',{my:'top left', at: 'top left', of: history.getDOMNode(history)});
},this))},this));
},this));},this));
// This disables the diff in history
var history = this.et2.getArrayMgr('content').getEntry('history');
history['status-widgets'].De = 'description';