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

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Barry de Graaff committed Feb 12, 2015
1 parent 3ebd35e commit 05855d7
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 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.6/tk_barrydegraaff_zimbra_openpgp.zip
wget https://github.com/barrydegraaff/pgp-zimlet-binaries/raw/master/1.4.7/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.6
VERSION=1.4.7
PACKAGE=zcs-openpgp
MAINTAINER=Barry de Graaff <[email protected]>
SECTION=free/zcs-mail
Expand Down
18 changes: 10 additions & 8 deletions tk_barrydegraaff_zimbra_openpgp/tk_barrydegraaff_zimbra_openpgp.js
Original file line number Diff line number Diff line change
Expand Up @@ -934,6 +934,15 @@ function() {
addresses=addresses + pubKeySelect.options[k].label + '; ';
}
}

if (pubKeys.length < 1)
{
this._dialog.setButtonVisible(DwtDialog.CANCEL_BUTTON, true);
this._dialog.setButtonVisible(DwtDialog.OK_BUTTON, true);
document.getElementById("message").style.backgroundImage = "url('')";
tk_barrydegraaff_zimbra_openpgp.prototype.status("Please select recipient(s).", ZmStatusView.LEVEL_WARNING);
return;
}

var privateKeyInput = document.getElementById("privateKeyInput").value;

Expand Down Expand Up @@ -985,14 +994,7 @@ function() {
myWindow._dialog.setButtonVisible(DwtDialog.CANCEL_BUTTON, true);
myWindow._dialog.setButtonVisible(DwtDialog.OK_BUTTON, true);
document.getElementById("message").style.backgroundImage = "url('')";
if( pubKeySelect.selectedOptions.length==0)
{
tk_barrydegraaff_zimbra_openpgp.prototype.status("Please select recipient(s).", ZmStatusView.LEVEL_WARNING);
}
else
{
tk_barrydegraaff_zimbra_openpgp.prototype.status("Could not encrypt message!", ZmStatusView.LEVEL_WARNING);
}
tk_barrydegraaff_zimbra_openpgp.prototype.status("Could not encrypt message!", ZmStatusView.LEVEL_WARNING);
});
}
else
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.6" label="OpenPGP" description="Encrypt/Decrypt messages with OpenPGP">
<zimlet name="tk_barrydegraaff_zimbra_openpgp" version="1.4.7" label="OpenPGP" description="Encrypt/Decrypt messages with OpenPGP">
<summary>
Zimbra OpenPGP Zimlet

Expand Down

0 comments on commit 05855d7

Please sign in to comment.