From: Michael M Slusarz Date: Fri, 30 Jul 2010 06:12:42 +0000 (-0600) Subject: Missed an onclick conversion X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=33bf4bc05ec530e5ac2bffbaca62bc0ac2ebb24e;p=horde.git Missed an onclick conversion --- diff --git a/imp/lib/Prefs/Ui.php b/imp/lib/Prefs/Ui.php index 39672ad16..84cd35112 100644 --- a/imp/lib/Prefs/Ui.php +++ b/imp/lib/Prefs/Ui.php @@ -1381,13 +1381,14 @@ class IMP_Prefs_Ui } if ($_SESSION['imp']['file_upload']) { + $t->set('can_import', true); $t->set('no_source', !$GLOBALS['prefs']->getValue('add_source')); if (!$t->get('no_source')) { $cacheSess = $GLOBALS['injector']->getInstance('Horde_SessionObjects'); $t->set('import_pubkey-help', Horde_Help::link('imp', 'smime-import-pubkey')); Horde::addInlineScript(array( - '$("import_pgp").observe("click", function(e) { ' . Horde::popupJs($smime_url, array('params' => array('actionID' => 'import_public_key', 'reload' => $cacheSess->storeOid($ui->selfUrl()->setRaw(true), false)), 'height' => 275, 'width' => 750, 'urlencode' => true)) . '; e.stop(); })' + '$("import_smime_public").observe("click", function(e) { ' . Horde::popupJs($smime_url, array('params' => array('actionID' => 'import_public_key', 'reload' => $cacheSess->storeOid($ui->selfUrl()->setRaw(true), false)), 'height' => 275, 'width' => 750, 'urlencode' => true)) . '; e.stop(); })' ), 'dom'); } } diff --git a/imp/templates/prefs/smimepublickey.html b/imp/templates/prefs/smimepublickey.html index bce9dc68f..910d4ce36 100644 --- a/imp/templates/prefs/smimepublickey.html +++ b/imp/templates/prefs/smimepublickey.html @@ -19,7 +19,7 @@ - +
Key import is not available. You have no address book defined to add your contacts. @@ -27,15 +27,15 @@

- +

- +
Key import is not available. File upload is not enabled on this server.
-
+