diff --git a/swad_changelog.h b/swad_changelog.h index fa2083771..a1acd47b8 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -221,13 +221,14 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 16.194.9 (2017-04-28)" +#define Log_PLATFORM_VERSION "SWAD 16.194.10 (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.10:Apr 28, 2017 Changed dialog to remove and exam announcement. (218379 lines) Version 16.194.9: Apr 28, 2017 Changed dialog to remove a non empty folder. (218379 lines) Version 16.194.8: Apr 28, 2017 Changed dialog to remove a file/link. (218369 lines) Version 16.194.7: Apr 28, 2017 Changed dialog to remove a record field. (218359 lines) diff --git a/swad_exam.c b/swad_exam.c index 71725b7ba..7841ea561 100644 --- a/swad_exam.c +++ b/swad_exam.c @@ -362,20 +362,19 @@ void Exa_ReqRemoveExamAnnouncement (void) if ((Gbl.ExamAnns.ExaDat.ExaCod = Exa_GetParamExaCod ()) <= 0) Lay_ShowErrorAndExit ("Code of exam announcement is missing."); - /***** Message *****/ - Lay_ShowAlert (Lay_WARNING,Txt_Do_you_really_want_to_remove_the_following_announcement_of_exam); + /***** Show question and button to remove exam announcement *****/ + /* Start alert */ + Lay_ShowAlertAndButton1 (Lay_QUESTION,Txt_Do_you_really_want_to_remove_the_following_announcement_of_exam); - /***** View announcement *****/ + /* Show announcement */ Exa_AllocMemExamAnnouncement (); Exa_GetDataExamAnnouncementFromDB (); Exa_ShowExamAnnouncement (Exa_NORMAL_VIEW); Exa_FreeMemExamAnnouncement (); - /***** Button of confirmation of removing *****/ - Act_FormStart (ActRemExaAnn); - Exa_PutParamExaCodToEdit (); - Lay_PutRemoveButton (Txt_Remove); - Act_FormEnd (); + /* End alert */ + Lay_ShowAlertAndButton2 (ActRemExaAnn,NULL,Exa_PutParamExaCodToEdit, + Lay_REMOVE_BUTTON,Txt_Remove); } /*****************************************************************************/