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

Commit

Permalink
adding progress round for encrypting and uploading attachments
Browse files Browse the repository at this point in the history
  • Loading branch information
barrydegraaff committed Apr 22, 2016
1 parent c143dc2 commit 3a76d09
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ The recommended method is to deploy using git. (I no longer support zmzimletctl,
[root@myzimbra ~]# rm pgp-zimlet -Rf
[root@myzimbra ~]# git clone https://github.com/Zimbra-Community/pgp-zimlet
[root@myzimbra ~]# cd pgp-zimlet
[root@myzimbra pgp-zimlet]# git checkout 2.2.0
[root@myzimbra pgp-zimlet]# git checkout 2.2.1
[root@myzimbra pgp-zimlet]# chmod +rx install-dev.sh
[root@myzimbra pgp-zimlet]# ./install-dev.sh
[root@myzimbra pgp-zimlet]# su zimbra
Expand Down
Binary file added tk_barrydegraaff_zimbra_openpgp/progressround.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions tk_barrydegraaff_zimbra_openpgp/tk_barrydegraaff_zimbra_openpgp.js
Original file line number Diff line number Diff line change
Expand Up @@ -2100,6 +2100,16 @@ function() {
}
}

if (numberOfAttachments > 0)
{
var attBubble = document.getElementsByClassName("attBubbleContainer");
for (var index = 0; index < attBubble.length; index++) {
attBubble[index].style.backgroundImage = 'url(\'/service/zimlet/_dev/tk_barrydegraaff_zimbra_openpgp/progressround.gif\')';
attBubble[index].style.backgroundRepeat = "no-repeat";
attBubble[index].style.backgroundPosition = "right";
}
}

for (var inputIndex = 0; inputIndex < fileInputs.length; inputIndex++)
{
for (var multiselectIndex = 0; multiselectIndex < fileInputs[inputIndex].files.length; multiselectIndex++)
Expand Down Expand Up @@ -2141,6 +2151,11 @@ function() {
var attachment_list = myWindow.attachment_ids.join(",");
var controller = appCtxt.getApp(ZmApp.MAIL).getComposeController(appCtxt.getApp(ZmApp.MAIL).getCurrentSessionId(ZmId.VIEW_COMPOSE));
controller.saveDraft(ZmComposeController.DRAFT_TYPE_MANUAL, attachment_list);

var attBubble = document.getElementsByClassName("attBubbleContainer");
for (var index = 0; index < attBubble.length; index++) {
attBubble[index].style.backgroundImage = 'url(\'\')';
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<zimlet name="tk_barrydegraaff_zimbra_openpgp" version="2.2.0" label="OpenPGP" description="Encrypt/Decrypt messages with OpenPGP">
<zimlet name="tk_barrydegraaff_zimbra_openpgp" version="2.2.1" label="OpenPGP" description="Encrypt/Decrypt messages with OpenPGP">
<summary>
Zimbra OpenPGP Zimlet

Expand Down

0 comments on commit 3a76d09

Please sign in to comment.