From 560ffefcd7dd0b1e39f6a6379a8d2ab84642c6ad Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 22 Feb 2017 18:10:02 +0100 Subject: [PATCH 1/2] Remove 'Alert' title from alert() --- .../titanium/src/java/ti/modules/titanium/TitaniumModule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/titanium/src/java/ti/modules/titanium/TitaniumModule.java b/android/titanium/src/java/ti/modules/titanium/TitaniumModule.java index 5f0207379b3..2cc5726187d 100644 --- a/android/titanium/src/java/ti/modules/titanium/TitaniumModule.java +++ b/android/titanium/src/java/ti/modules/titanium/TitaniumModule.java @@ -227,7 +227,7 @@ public void alert(Object message) String msg = (message == null? null : message.toString()); if (TiApplication.isUIThread()) { - TiUIHelper.doOkDialog("Alert", msg, null); + TiUIHelper.doOkDialog("", msg, null); } else { getMainHandler().obtainMessage(MSG_ALERT, msg).sendToTarget(); } From cd215f4055c9d00e7b0f99cfd38f68af360a84eb Mon Sep 17 00:00:00 2001 From: Christopher Williams Date: Mon, 27 Nov 2017 13:41:34 -0500 Subject: [PATCH 2/2] Remove default "Alert" title from global alert function's dialog --- iphone/Classes/KrollContext.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iphone/Classes/KrollContext.m b/iphone/Classes/KrollContext.m index f069979fd77..d5247aa7828 100644 --- a/iphone/Classes/KrollContext.m +++ b/iphone/Classes/KrollContext.m @@ -292,7 +292,7 @@ static TiValueRef AlertCallback(TiContextRef jsContext, TiObjectRef jsFunction, NSString *message = [KrollObject toID:ctx value:args[0]]; TiUIAlertDialogProxy *alert = [[[TiUIAlertDialogProxy alloc] _initWithPageContext:(id)[ctx delegate] args:nil] autorelease]; - [alert setValue:@"Alert" forKey:@"title"]; + [alert setValue:@"" forKey:@"title"]; [alert setValue:message forKey:@"message"]; [alert show:nil];