aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-12-10 14:43:44 +0000
committerBibiko <bibiko@eva.mpg.de>2010-12-10 14:43:44 +0000
commit9f7545289ce2d8eda170baa14d740540cf25188f (patch)
treeff13894a059c6a8e018f244adb0888513deaf938
parentc1561b572cb258a8ff1b8290c56cc22604d4aadd (diff)
downloadsequelpro-9f7545289ce2d8eda170baa14d740540cf25188f.tar.gz
sequelpro-9f7545289ce2d8eda170baa14d740540cf25188f.tar.bz2
sequelpro-9f7545289ce2d8eda170baa14d740540cf25188f.zip
• Bundle HTML output
- display a JavaScript alert as sheet
-rw-r--r--Source/SPBundleHTMLOutputController.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/SPBundleHTMLOutputController.m b/Source/SPBundleHTMLOutputController.m
index 8ae91400..e675e9f5 100644
--- a/Source/SPBundleHTMLOutputController.m
+++ b/Source/SPBundleHTMLOutputController.m
@@ -314,7 +314,8 @@
- (void)webView:(WebView *)sender runJavaScriptAlertPanelWithMessage:(NSString *)message initiatedByFrame:(WebFrame *)frame
{
- NSLog(@"alert %@", message);
+ SPBeginAlertSheet(NSLocalizedString(@"JavaScript Alert", @"javascript alert"), NSLocalizedString(@"OK", @"OK button"), nil, nil, [self window], self, nil, nil,
+ [message description]);
}
- (BOOL)webView:(WebView *)sender runJavaScriptConfirmPanelWithMessage:(NSString *)message initiatedByFrame:(WebFrame *)frame