From: Michael M Slusarz Date: Thu, 29 Jul 2010 17:20:05 +0000 (-0600) Subject: window.confirm() is more correct/thorough X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=ab643741549f37427b213302d5152be6f68106b7;p=horde.git window.confirm() is more correct/thorough --- diff --git a/imp/lib/Prefs/Ui.php b/imp/lib/Prefs/Ui.php index e2d58e960..357a6a1e3 100644 --- a/imp/lib/Prefs/Ui.php +++ b/imp/lib/Prefs/Ui.php @@ -1150,7 +1150,7 @@ class IMP_Prefs_Ui 'email' => $val['email'], 'view' => Horde::link($pgp_url->copy()->add(array('actionID' => 'view_public_key', 'email' => $val['email'])), sprintf(_("View %s Public Key"), $val['name']), null, 'view_key'), 'info' => Horde::link($pgp_url->copy()->add(array('actionID' => 'info_public_key', 'email' => $val['email'])), sprintf(_("Information on %s Public Key"), $val['name']), null, 'info_key'), - 'delete' => Horde::link($self_url->copy()->add(array('delete_pgp_pubkey' => 1, 'email' => $val['email'])), sprintf(_("Delete %s Public Key"), $val['name']), null, null, "confirm('" . addslashes(_("Are you sure you want to delete this public key?")) . "')") + 'delete' => Horde::link($self_url->copy()->add(array('delete_pgp_pubkey' => 1, 'email' => $val['email'])), sprintf(_("Delete %s Public Key"), $val['name']), null, null, "window.confirm('" . addslashes(_("Are you sure you want to delete this public key?")) . "')") ); } $t->set('pubkey_list', $plist); @@ -1356,7 +1356,7 @@ class IMP_Prefs_Ui 'email' => $val['email'], 'view' => Horde::link($smime_url->copy()->add(array('actionID' => 'view_public_key', 'email' => $val['email'])), sprintf(_("View %s Public Key"), $val['name']), null, 'view_key'), 'info' => Horde::link($smime_url->copy()->add(array('actionID' => 'info_public_key', 'email' => $val['email'])), sprintf(_("Information on %s Public Key"), $val['name']), null, 'info_key'), - 'delete' => Horde::link($self_url->copy()->add(array('delete_smime_pubkey' => 1, 'email' => $val['email'])), sprintf(_("Delete %s Public Key"), $val['name']), null, null, "confirm('" . addslashes(_("Are you sure you want to delete this public key?")) . "')") + 'delete' => Horde::link($self_url->copy()->add(array('delete_smime_pubkey' => 1, 'email' => $val['email'])), sprintf(_("Delete %s Public Key"), $val['name']), null, null, "window.confirm('" . addslashes(_("Are you sure you want to delete this public key?")) . "')") ); } $t->set('pubkey_list', $plist);