Skip to content

Commit

Permalink
Use minified publickey.js (with cache-buster) when available (#5254)
Browse files Browse the repository at this point in the history
  • Loading branch information
alecpl committed May 22, 2016
1 parent a80981c commit 2a35273
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
8 changes: 0 additions & 8 deletions program/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -3577,14 +3577,6 @@ function rcube_webmail()

// list recipients with missing keys
if (!isvalid && missing_keys.length) {
// load publickey.js
if (!$('script#publickeyjs').length) {
$('<script>')
.attr('id', 'publickeyjs')
.attr('src', ref.assets_path('program/js/publickey.js'))
.appendTo(document.body);
}

// display dialog with missing keys
ref.show_popup_dialog(
ref.get_label('nopubkeyfor').replace('$email', missing_keys.join(', ')) +
Expand Down
1 change: 1 addition & 0 deletions program/steps/mail/compose.inc
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ else if (count($MESSAGE->identities)) {
// process $MESSAGE body/attachments, set $MESSAGE_BODY/$HTML_MODE vars and some session data
$MESSAGE_BODY = rcmail_prepare_message_body();

$OUTPUT->include_script('publickey.js');

// register UI objects
$OUTPUT->add_handlers(array(
Expand Down

0 comments on commit 2a35273

Please sign in to comment.