Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

Commit

Permalink
removing some left-over html/css from decrypted/verified result, only…
Browse files Browse the repository at this point in the history
… show scrollbars if needed.
  • Loading branch information
Barry de Graaff committed Feb 2, 2015
1 parent 919dde0 commit b60e333
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Bugs and feedback: https://github.com/barrydegraaff/pgp-zimlet/issues
su zimbra
cd /tmp
rm tk_barrydegraaff_zimbra_openpgp*
wget https://github.com/barrydegraaff/pgp-zimlet-binaries/raw/master/1.4.1/tk_barrydegraaff_zimbra_openpgp.zip
wget https://github.com/barrydegraaff/pgp-zimlet-binaries/raw/master/1.4.2/tk_barrydegraaff_zimbra_openpgp.zip
zmzimletctl deploy tk_barrydegraaff_zimbra_openpgp.zip
(wait 15 minutes for the deploy to propagate; or zmprov fc all)

Expand Down
2 changes: 1 addition & 1 deletion conf.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION=1.4.1
VERSION=1.4.2
PACKAGE=zcs-openpgp
MAINTAINER=Barry de Graaff <[email protected]>
SECTION=free/zcs-mail
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ tk_barrydegraaff_zimbra_openpgp.prototype.verify = function(message) {
}
if (message.text.indexOf('<html><body>') > -1 )
{
myWindow.displayDialog(2, 'Signed message ' + sigStatus, '<div style="width:650px; height: 350px; overflow-x: hidden; overflow-y: scroll; background-color:white; padding:5px;"><div contenteditable="true" class="barrydegraaff_zimbra_openpgp-msg" style="height:320px;">'+message.text+'</div></div>');
myWindow.displayDialog(2, 'Signed message ' + sigStatus, '<div style="width:650px; height: 350px; overflow-x: auto; overflow-y: auto; background-color:white; padding:5px;" contenteditable="true">'+message.text+'</div>');
}
},
function (err) {
Expand Down Expand Up @@ -591,7 +591,7 @@ function() {
var preClose = '';
}
myWindow._dialog.setTitle('Decrypted message '+ sigStatus);
myWindow._dialog.setContent('<div style="width:650px; height: 350px; overflow-x: scroll; overflow-y: scroll; background-color:white; padding:5px;"><div contenteditable="true" class="barrydegraaff_zimbra_openpgp-msg" style="height:320px;">'+ preOpen + decrypted.text + preClose +'</div></div><br><small><a id="original-a" onclick="document.getElementById(\'openpgp-original\').style.display = \'inline\';document.getElementById(\'original-a\').style.display = \'none\';">original</a></small><textarea id="openpgp-original" class="barrydegraaff_zimbra_openpgp-msg" style="height:40px; display:none">'+decrypted.text+'</textarea>');
myWindow._dialog.setContent('<div style="width:650px; height: 350px; overflow-x: auto; overflow-y: auto; background-color:white; padding:5px;" contenteditable="true">'+ preOpen + decrypted.text + preClose +'</div><br><small><a id="original-a" onclick="document.getElementById(\'openpgp-original\').style.display = \'inline\';document.getElementById(\'original-a\').style.display = \'none\';">original</a></small><textarea id="openpgp-original" class="barrydegraaff_zimbra_openpgp-msg" style="height:40px; display:none">'+decrypted.text+'</textarea>');
},
function(err) {
tk_barrydegraaff_zimbra_openpgp.prototype.status("Decryption failed!", ZmStatusView.LEVEL_WARNING);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<zimlet name="tk_barrydegraaff_zimbra_openpgp" version="1.4.1" label="OpenPGP" description="Encrypt/Decrypt messages with OpenPGP">
<zimlet name="tk_barrydegraaff_zimbra_openpgp" version="1.4.2" label="OpenPGP" description="Encrypt/Decrypt messages with OpenPGP">
<summary>
Zimbra OpenPGP Zimlet

Expand Down

0 comments on commit b60e333

Please sign in to comment.