www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit d323df4a2d003f2998d24361845dfafc6409a678
parent 38d87463afbaf93011918c27e69cfa1e91cb91ce
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu,  1 Jun 2006 21:57:12 +0000

window.confirm() replacement for XPCOM


Diffstat:
Mcomponents/chnmIScholarService.js | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/components/chnmIScholarService.js b/components/chnmIScholarService.js @@ -58,6 +58,14 @@ function alert(msg){ .alert(null, "", msg); } +/** +* Convenience method to replicate window.confirm() +**/ +function confirm(msg){ + return Cc["@mozilla.org/embedcomp/prompt-service;1"] + .getService(Ci.nsIPromptService) + .confirm(null, "", msg); +} // // XPCOM goop