cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "gauthier beaufort (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-12418) cordova-plugin-dialogs
Date Mon, 13 Feb 2017 12:25:41 GMT

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

gauthier beaufort commented on CB-12418:
----------------------------------------

thank you,
so an example of complete function:
{code}
			$(document).on('click touchstart','.addList',function() {
				function onPrompt(results) {
					if(results.input1 != null && results.buttonIndex == 2){
						if(results.input1 == ""){
							function onAlert() {
								$('.addList').trigger('click');
							}
							navigator.notification.alert(
								'Veuillez nommer la liste',  // message
								onAlert,         // callback
								'Erreur',            // title
								'Ok'                  // buttonName
							);
						}
						else{
							var nameList = results.input1;
							$.ajax({
								type : 'POST',
								url : urlServer+'addList.php',
								data : {id_user: id_user, nom: nameList, token: token},
								success : function(data) {
									idList = data;
									 $('.list').append('<div class="ligneList"><li data-liste-id="'+idList+'">'+nameList+'</li><div
class="shareList">Partager</div><div class="deleteList">Supprimer</div></div>');
									selectList(idList);
								},
								error : function(resultat, statut, erreur){
									ajaxError(resultat, statut, erreur);
								}
							})
						}
					}
				}
				navigator.notification.prompt(
					'Entrez un nom pour la liste',  // message
					onPrompt,                  // callback to invoke
					'Création d\'une liste de course',            // title
					['Annuler','Valider'],             // buttonLabels
					''                 // defaultText
				);
			});
{code}

> cordova-plugin-dialogs
> ----------------------
>
>                 Key: CB-12418
>                 URL: https://issues.apache.org/jira/browse/CB-12418
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS, Plugin Dialogs
>    Affects Versions: 1.3.0, 6.4.0
>         Environment: ios 10.2
>            Reporter: gauthier beaufort
>              Labels: Triaged
>
> When i use a navigator.notification.prompt on ios, the first time the input is focus
 and show keyboard, but second time the keyboard and focus dissapear very quickly (-1s). Sometimes
it happenned the first time, tell me if you need more informations or can't reproduce.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message