incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesse MacFadyen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-486) navigator.notification.alert doesn not show custom names for MessageBoxButton
Date Wed, 25 Apr 2012 20:02:18 GMT

    [ https://issues.apache.org/jira/browse/CB-486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13262015#comment-13262015
] 

Jesse MacFadyen commented on CB-486:
------------------------------------

It's a pretty small task to add the feature. Not at all worth
including another dll IMHO



                
> navigator.notification.alert doesn not show custom names for MessageBoxButton
> -----------------------------------------------------------------------------
>
>                 Key: CB-486
>                 URL: https://issues.apache.org/jira/browse/CB-486
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: WP7
>    Affects Versions: 1.6.0
>         Environment: WP7 Emumlator
> WP7 Device LG
>            Reporter: Laurens Van de Perre
>            Assignee: Jesse MacFadyen
>            Priority: Minor
>             Fix For: 1.7.0
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Currently when calling in javascript:
> navigator.notification.alert("message", stopVibration, "title", 'buttontext');
> An alert box will pop up in WP7 but does not have the correct buttontext.
> This is due:
> "public void alert(string options)
>         {
>             Deployment.Current.Dispatcher.BeginInvoke(() =>
>             {
>                 AlertOptions alertOpts = JSON.JsonHelper.Deserialize<AlertOptions>(options);
>                 MessageBoxResult res = MessageBox.Show(alertOpts.message, alertOpts.title,MessageBoxButton.OK);
>                 DispatchCommandResult(new PluginResult(PluginResult.Status.OK,(int)res));
>             });
>         }
> "
> A possible solution to solve this bug is to use a custom messageboxresult like:
> http://shareourideas.com/2011/03/05/custom-message-box-in-windows-phone-7/

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message