From 6445ed857799bc6f9e748d297e324b1066bbc989 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Fri, 28 Apr 2017 14:05:30 +0200 Subject: [PATCH] Version 16.194.18 --- swad_changelog.h | 3 ++- swad_survey.c | 13 ++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/swad_changelog.h b/swad_changelog.h index 1d0027c73..9bb57fda9 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -221,13 +221,14 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 16.194.17 (2017-04-28)" +#define Log_PLATFORM_VERSION "SWAD 16.194.18 (2017-04-28)" #define CSS_FILE "swad16.193.4.css" #define JS_FILE "swad16.181.js" // Number of lines (includes comments but not blank lines) has been got with the following command: // nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*?.h sql/swad*.sql | tail -1 /* + Version 16.194.18:Apr 28, 2017 Changed dialog to remove a survey. (218388 lines) Version 16.194.17:Apr 28, 2017 Changed dialog to remove a test question. (218388 lines) Version 16.194.16:Apr 28, 2017 Changed dialog to remove a survey question. (218370 lines) Version 16.194.15:Apr 28, 2017 Changed dialog to remove another user's photo. diff --git a/swad_survey.c b/swad_survey.c index 4d82cd786..410bc3e9e 100644 --- a/swad_survey.c +++ b/swad_survey.c @@ -1490,17 +1490,16 @@ void Svy_AskRemSurvey (void) if (!Svy.Status.ICanEdit) Lay_ShowErrorAndExit ("You can not remove this survey."); - /***** Ask for confirmation of removing *****/ + /***** Show question and button to remove survey *****/ + /* Start alert */ sprintf (Gbl.Message,Txt_Do_you_really_want_to_remove_the_survey_X, Svy.Title); - Lay_ShowAlert (Lay_WARNING,Gbl.Message); + Lay_ShowAlertAndButton1 (Lay_QUESTION,Gbl.Message); - /***** Button of confirmation of removing *****/ + /* End alert */ Gbl.Svys.SvyCodToEdit = Svy.SvyCod; - Act_FormStart (ActRemSvy); - Svy_PutParams (); - Lay_PutRemoveButton (Txt_Remove_survey); - Act_FormEnd (); + Lay_ShowAlertAndButton2 (ActRemSvy,NULL,Svy_PutParams, + Lay_REMOVE_BUTTON,Txt_Remove_survey); /***** Show surveys again *****/ Svy_ListAllSurveys (&SvyQst);