diff --git a/swad_ID.c b/swad_ID.c
index d2746164..bdf1838d 100644
--- a/swad_ID.c
+++ b/swad_ID.c
@@ -551,8 +551,7 @@ void ID_ShowFormOthIDs (void)
{
/***** Start box *****/
Box_StartBox (NULL,Txt_ID,NULL,
- NULL,
- false); // Not closable
+ NULL,Box_NOT_CLOSABLE);
/***** Show user's record *****/
Rec_ShowSharedUsrRecord (Rec_SHA_RECORD_LIST,
diff --git a/swad_MFU.c b/swad_MFU.c
index e1e2dfde..1d3bc284 100644
--- a/swad_MFU.c
+++ b/swad_MFU.c
@@ -225,8 +225,7 @@ void MFU_WriteBigMFUActions (struct MFU_ListMFUActions *ListMFUActions)
/***** Start box *****/
Box_StartBox (NULL,Txt_My_frequent_actions,NULL,
- Hlp_STATS_Frequent,
- false); // Not closable
+ Hlp_STATS_Frequent,Box_NOT_CLOSABLE);
fprintf (Gbl.F.Out,"
");
/***** Write list of frequently used actions *****/
diff --git a/swad_account.c b/swad_account.c
index 375f0b96..2ad0b329 100644
--- a/swad_account.c
+++ b/swad_account.c
@@ -145,8 +145,7 @@ static void Acc_ShowFormCheckIfIHaveAccount (const char *Title)
/***** Start box *****/
Box_StartBox (NULL,Title,NULL,
- Hlp_PROFILE_SignUp,
- true); // Closable
+ Hlp_PROFILE_SignUp,Box_CLOSABLE);
/***** Help alert *****/
Ale_ShowAlert (Ale_INFO,Txt_If_you_think_you_may_have_been_registered_);
@@ -219,9 +218,7 @@ void Acc_CheckIfEmptyAccountExists (void)
(NumUsrs == 1) ? Txt_Do_you_think_you_are_this_user :
Txt_Do_you_think_you_are_one_of_these_users,
NULL,
- NULL,
- true, // Closable
- 5);
+ NULL,Box_CLOSABLE,5);
/***** Initialize structure with user's data *****/
Usr_UsrDataConstructor (&UsrDat);
@@ -350,9 +347,7 @@ static void Acc_ShowFormRequestNewAccountWithParams (const char *NewNicknameWith
/***** Start box and table *****/
Box_StartBoxTable (NULL,Txt_Create_account,NULL,
- Hlp_PROFILE_SignUp,
- false, // Not closable
- 2);
+ Hlp_PROFILE_SignUp,Box_NOT_CLOSABLE,2);
/***** Nickname *****/
if (NewNicknameWithoutArroba[0])
@@ -417,8 +412,7 @@ void Acc_ShowFormGoToRequestNewAccount (void)
/***** Start box *****/
sprintf (Gbl.Title,Txt_New_on_PLATFORM_Sign_up,Cfg_PLATFORM_SHORT_NAME);
Box_StartBox (NULL,Gbl.Title,NULL,
- Hlp_PROFILE_SignUp,
- false); // Not closable
+ Hlp_PROFILE_SignUp,Box_NOT_CLOSABLE);
/***** Button to go to request the creation of a new account *****/
Act_FormStart (ActFrmMyAcc);
@@ -478,9 +472,7 @@ void Acc_ShowFormChangeMyAccount (void)
/***** Start box and table *****/
Box_StartBoxTable (NULL,Txt_User_account,NULL,
- Hlp_PROFILE_Account,
- false, // Not closable
- 2);
+ Hlp_PROFILE_Account,Box_NOT_CLOSABLE,2);
/***** Nickname *****/
if (IMustFillNickname)
diff --git a/swad_agenda.c b/swad_agenda.c
index bc9d2d5f..856d5cbe 100644
--- a/swad_agenda.c
+++ b/swad_agenda.c
@@ -149,8 +149,7 @@ void Agd_ShowMyAgenda (void)
/***** Start box *****/
Box_StartBox ("100%",Txt_My_agenda,Agd_PutIconsMyFullAgenda,
- Hlp_PROFILE_Agenda,
- false); // Not closable
+ Hlp_PROFILE_Agenda,Box_NOT_CLOSABLE);
/***** Put forms to choice which events to show *****/
Agd_ShowFormToSelPast__FutureEvents ();
@@ -370,8 +369,7 @@ void Agd_ShowUsrAgenda (void)
Box_StartBox ("100%",Gbl.Title,
ItsMe ? Agd_PutIconsMyPublicAgenda :
Agd_PutIconsOtherPublicAgenda,
- Hlp_PROFILE_Agenda_public_agenda,
- false); // Not closable
+ Hlp_PROFILE_Agenda_public_agenda,Box_NOT_CLOSABLE);
/***** Show the current events in the user's agenda *****/
Agd_ShowEventsToday (Agd_ANOTHER_AGENDA_TODAY);
@@ -414,8 +412,7 @@ void Agd_ShowOtherAgendaAfterLogIn (void)
Box_StartBox ("100%",Gbl.Title,
ItsMe ? Agd_PutIconToViewEditMyFullAgenda :
Agd_PutIconsOtherPublicAgenda,
- Hlp_PROFILE_Agenda_public_agenda,
- false); // Not closable
+ Hlp_PROFILE_Agenda_public_agenda,Box_NOT_CLOSABLE);
/***** Show the current events in the user's agenda *****/
Agd_ShowEventsToday (Agd_ANOTHER_AGENDA_TODAY);
@@ -1538,14 +1535,10 @@ void Agd_RequestCreatOrEditEvent (void)
/***** Start box and table *****/
if (ItsANewEvent)
Box_StartBoxTable (NULL,Txt_New_event,NULL,
- Hlp_PROFILE_Agenda_new_event,
- false, // Not closable
- 2);
+ Hlp_PROFILE_Agenda_new_event,Box_NOT_CLOSABLE,2);
else
Box_StartBoxTable (NULL,Txt_Edit_event,NULL,
- Hlp_PROFILE_Agenda_edit_event,
- false, // Not closable
- 2);
+ Hlp_PROFILE_Agenda_edit_event,Box_NOT_CLOSABLE,2);
/***** Event *****/
fprintf (Gbl.F.Out,"
"
@@ -1949,8 +1942,7 @@ void Agd_PrintAgdQRCode (void)
/***** Start box *****/
sprintf (Gbl.Title,Txt_Where_s_USER,Gbl.Usrs.Me.UsrDat.FullName);
Box_StartBox (NULL,Gbl.Title,NULL,
- NULL,
- false); // Not closable
+ NULL,Box_NOT_CLOSABLE);
/***** Print QR code ****/
QR_PrintQRCode ();
diff --git a/swad_announcement.c b/swad_announcement.c
index 6297739a..47dd1d67 100644
--- a/swad_announcement.c
+++ b/swad_announcement.c
@@ -123,9 +123,7 @@ void Ann_ShowAllAnnouncements (void)
Box_StartBox ("550px",Txt_Announcements,
ICanEdit ? Ann_PutIconToAddNewAnnouncement :
NULL,
- Hlp_MESSAGES_Announcements,
- false); // Not closable
-
+ Hlp_MESSAGES_Announcements,Box_NOT_CLOSABLE);
if (!NumAnnouncements)
Ale_ShowAlert (Ale_INFO,Txt_No_announcements);
@@ -413,9 +411,7 @@ void Ann_ShowFormAnnouncement (void)
/***** Start box and table *****/
Box_StartBoxTable (NULL,Txt_New_announcement,NULL,
- Hlp_MESSAGES_Announcements,
- false, // Not closable
- 2);
+ Hlp_MESSAGES_Announcements,Box_NOT_CLOSABLE,2);
/***** Announcement subject and body *****/
Ann_PutSubjectMessage ("Subject",Txt_MSG_Subject, 2);
diff --git a/swad_assignment.c b/swad_assignment.c
index 1a3d0d4d..3c115e79 100644
--- a/swad_assignment.c
+++ b/swad_assignment.c
@@ -138,8 +138,7 @@ static void Asg_ShowAllAssignments (void)
/***** Start box *****/
Box_StartBox ("100%",Txt_Assignments,Asg_PutIconsListAssignments,
- Hlp_ASSESSMENT_Assignments,
- false); // Not closable
+ Hlp_ASSESSMENT_Assignments,Box_NOT_CLOSABLE);
/***** Select whether show only my groups or all groups *****/
if (Gbl.CurrentCrs.Grps.NumGrps)
@@ -1175,14 +1174,10 @@ void Asg_RequestCreatOrEditAsg (void)
/***** Start box and table *****/
if (ItsANewAssignment)
Box_StartBoxTable (NULL,Txt_New_assignment,NULL,
- Hlp_ASSESSMENT_Assignments_new_assignment,
- false, // Not closable
- 2);
+ Hlp_ASSESSMENT_Assignments_new_assignment,Box_NOT_CLOSABLE,2);
else
Box_StartBoxTable (NULL,Txt_Edit_assignment,NULL,
- Hlp_ASSESSMENT_Assignments_edit_assignment,
- false, // Not closable
- 2);
+ Hlp_ASSESSMENT_Assignments_edit_assignment,Box_NOT_CLOSABLE,2);
/***** Assignment title *****/
fprintf (Gbl.F.Out,"
"
@@ -1275,9 +1270,7 @@ static void Asg_ShowLstGrpsToEditAssignment (long AsgCod)
The_ClassForm[Gbl.Prefs.Theme],
Txt_Groups);
Box_StartBoxTable ("100%",NULL,NULL,
- Hlp_USERS_Groups,
- false, // Not closable
- 0);
+ Hlp_USERS_Groups,Box_NOT_CLOSABLE,0);
/***** First row: checkbox to select the whole course *****/
fprintf (Gbl.F.Out,"
"
diff --git a/swad_attendance.c b/swad_attendance.c
index 6fde700a..c090d106 100644
--- a/swad_attendance.c
+++ b/swad_attendance.c
@@ -226,8 +226,7 @@ static void Att_ShowAllAttEvents (void)
/***** Start box *****/
Box_StartBox ("100%",Txt_Events,ICanEdit ? Att_PutIconToCreateNewAttEvent :
NULL,
- Hlp_USERS_Attendance,
- false); // Not closable
+ Hlp_USERS_Attendance,Box_NOT_CLOSABLE);
/***** Select whether show only my groups or all groups *****/
if (Gbl.CurrentCrs.Grps.NumGrps)
@@ -1090,14 +1089,10 @@ void Att_RequestCreatOrEditAttEvent (void)
/***** Start box and table *****/
if (ItsANewAttEvent)
Box_StartBoxTable (NULL,Txt_New_event,NULL,
- Hlp_USERS_Attendance_new_event,
- false, // Not closable
- 2);
+ Hlp_USERS_Attendance_new_event,Box_NOT_CLOSABLE,2);
else
Box_StartBoxTable (NULL,Txt_Edit_event,NULL,
- Hlp_USERS_Attendance_edit_event,
- false, // Not closable
- 2);
+ Hlp_USERS_Attendance_edit_event,Box_NOT_CLOSABLE,2);
/***** Attendance event title *****/
fprintf (Gbl.F.Out,"
"
@@ -1197,9 +1192,7 @@ static void Att_ShowLstGrpsToEditAttEvent (long AttCod)
"",
The_ClassForm[Gbl.Prefs.Theme],Txt_Groups);
Box_StartBoxTable ("100%",NULL,NULL,
- NULL,
- false, // Not closable
- 0);
+ NULL,Box_NOT_CLOSABLE,0);
/***** First row: checkbox to select the whole course *****/
fprintf (Gbl.F.Out," |
"
@@ -1830,9 +1823,7 @@ void Att_SeeOneAttEvent (void)
/***** Start box and table *****/
Box_StartBoxTable (NULL,Txt_Event,NULL,
- Hlp_USERS_Attendance,
- false, // Not closable
- 2);
+ Hlp_USERS_Attendance,Box_NOT_CLOSABLE,2);
Att.AttCod = Gbl.AttEvents.AttCod;
Att_ShowOneAttEvent (&Att,true);
@@ -1882,9 +1873,7 @@ static void Att_ListAttOnlyMeAsStudent (struct AttendanceEvent *Att)
/***** List students' data *****/
/* Start box and table */
Box_StartBoxTable (NULL,NULL,NULL,
- Hlp_USERS_Attendance,
- false, // Not closable
- 2);
+ Hlp_USERS_Attendance,Box_NOT_CLOSABLE,2);
fprintf (Gbl.F.Out,"
"
" | "
" | "
@@ -1943,8 +1932,7 @@ static void Att_ListAttStudents (struct AttendanceEvent *Att)
/***** Start box *****/
Box_StartBox (NULL,Txt_Attendance,NULL,
- Hlp_USERS_Attendance,
- false); // Not closable
+ Hlp_USERS_Attendance,Box_NOT_CLOSABLE);
/***** Form to select groups *****/
Grp_ShowFormToSelectSeveralGroups (ActSeeOneAtt);
@@ -2681,8 +2669,7 @@ void Usr_ReqListStdsAttendanceCrs (void)
/***** Start box *****/
Box_StartBox (NULL,Txt_ROLES_PLURAL_Abc[Rol_STD][Usr_SEX_UNKNOWN],NULL,
- Hlp_USERS_Attendance_attendance_list,
- false); // Not closable
+ Hlp_USERS_Attendance_attendance_list,Box_NOT_CLOSABLE);
/***** Form to select groups *****/
Grp_ShowFormToSelectSeveralGroups (ActReqLstStdAtt);
@@ -3114,8 +3101,7 @@ static void Att_ListEventsToSelect (Att_TypeOfView_t TypeOfView)
Box_StartBoxTable (NULL,Txt_Events,NULL,
TypeOfView == Att_PRINT_VIEW ? NULL :
Hlp_USERS_Attendance_attendance_list,
- false, // Not closable
- 2);
+ Box_NOT_CLOSABLE,2);
/***** Heading row *****/
fprintf (Gbl.F.Out,"
"
@@ -3229,7 +3215,7 @@ static void Att_ListStdsAttendanceTable (Att_TypeOfView_t TypeOfView,
NULL),
TypeOfView == Att_PRINT_VIEW ? NULL :
Hlp_USERS_Attendance_attendance_list,
- false); // Not closable
+ Box_NOT_CLOSABLE);
if (PutButtonShowDetails)
Tbl_StartTableWideMargin (2);
else
@@ -3449,8 +3435,7 @@ static void Att_ListStdsWithAttEventsDetails (Att_TypeOfView_t TypeOfView,
Box_StartBoxTable (NULL,Txt_Details,NULL,
TypeOfView == Att_PRINT_VIEW ? NULL :
Hlp_USERS_Attendance_attendance_list,
- false, // Not closable
- 2);
+ Box_NOT_CLOSABLE,2);
/***** List students with attendance details *****/
for (NumStd = 0, Gbl.RowEvenOdd = 0;
diff --git a/swad_banner.c b/swad_banner.c
index 63f1fb4b..ebf12d10 100644
--- a/swad_banner.c
+++ b/swad_banner.c
@@ -118,8 +118,7 @@ void Ban_SeeBanners (void)
/***** Start box *****/
Box_StartBox (NULL,Txt_Banners,Ban_PutFormToEditBanners,
- Hlp_SYSTEM_Banners,
- false); // Not closable
+ Hlp_SYSTEM_Banners,Box_NOT_CLOSABLE);
/***** Write all banners *****/
if (Gbl.Banners.Num) // There are banners
@@ -209,8 +208,7 @@ void Ban_EditBanners (void)
/***** Start box *****/
Box_StartBox (NULL,Txt_Banners,Ban_PutIconToViewBanners,
- Hlp_SYSTEM_Banners_edit,
- false); // Not closable
+ Hlp_SYSTEM_Banners_edit,Box_NOT_CLOSABLE);
/***** Put a form to create a new banner *****/
Ban_PutFormToCreateBanner ();
@@ -834,9 +832,7 @@ static void Ban_PutFormToCreateBanner (void)
/***** Start box and table *****/
Box_StartBoxTable (NULL,Txt_New_banner,NULL,
- Hlp_SYSTEM_Banners_edit,
- false, // Not closable
- 2);
+ Hlp_SYSTEM_Banners_edit,Box_NOT_CLOSABLE,2);
/***** Write heading *****/
Ban_PutHeadBanners ();
diff --git a/swad_box.c b/swad_box.c
index 8769aa5d..0960baf8 100644
--- a/swad_box.c
+++ b/swad_box.c
@@ -58,7 +58,7 @@ extern struct Globals Gbl;
static void Box_StartBoxInternal (const char *Width,const char *Title,
void (*FunctionToDrawContextualIcons) (void),
- const char *HelpLink,bool Closable,
+ const char *HelpLink,Box_Closable_t Closable,
const char *ClassFrame);
/*****************************************************************************/
@@ -68,12 +68,11 @@ static void Box_StartBoxInternal (const char *Width,const char *Title,
void Box_StartBoxTable (const char *Width,const char *Title,
void (*FunctionToDrawContextualIcons) (void),
- const char *HelpLink,bool Closable,
+ const char *HelpLink,Box_Closable_t Closable,
unsigned CellPadding) // CellPadding must be 0, 1, 2, 5 or 10
{
Box_StartBox (Width,Title,FunctionToDrawContextualIcons,
- HelpLink,
- Closable);
+ HelpLink,Closable);
Tbl_StartTableWide (CellPadding);
}
@@ -90,12 +89,11 @@ void Box_StartBoxTableShadow (const char *Width,const char *Title,
void Box_StartBox (const char *Width,const char *Title,
void (*FunctionToDrawContextualIcons) (void),
- const char *HelpLink,bool Closable)
+ const char *HelpLink,Box_Closable_t Closable)
{
Box_StartBoxInternal (Width,Title,
FunctionToDrawContextualIcons,
- HelpLink,
- Closable,
+ HelpLink,Closable,
"FRAME");
}
@@ -105,14 +103,13 @@ void Box_StartBoxShadow (const char *Width,const char *Title,
{
Box_StartBoxInternal (Width,Title,
FunctionToDrawContextualIcons,
- HelpLink,
- false, // Not closable
+ HelpLink,Box_NOT_CLOSABLE,
"FRAME_SHADOW");
}
static void Box_StartBoxInternal (const char *Width,const char *Title,
void (*FunctionToDrawContextualIcons) (void),
- const char *HelpLink,bool Closable,
+ const char *HelpLink,Box_Closable_t Closable,
const char *ClassFrame)
{
extern const char *Txt_Help;
@@ -121,7 +118,7 @@ static void Box_StartBoxInternal (const char *Width,const char *Title,
/***** Start box container *****/
fprintf (Gbl.F.Out,""
""
diff --git a/swad_box.h b/swad_box.h
index da4dae56..28657d64 100644
--- a/swad_box.h
+++ b/swad_box.h
@@ -39,17 +39,23 @@
/********************************* Public types ******************************/
/*****************************************************************************/
+typedef enum
+ {
+ Box_NOT_CLOSABLE,
+ Box_CLOSABLE,
+ } Box_Closable_t;
+
/*****************************************************************************/
/****************************** Public prototypes ****************************/
/*****************************************************************************/
void Box_StartBoxTable (const char *Width,const char *Title,
void (*FunctionToDrawContextualIcons) (void),
- const char *HelpLink,bool Closable,
+ const char *HelpLink,Box_Closable_t Closable,
unsigned CellPadding);
void Box_StartBox (const char *Width,const char *Title,
void (*FunctionToDrawContextualIcons) (void),
- const char *HelpLink,bool Closable);
+ const char *HelpLink,Box_Closable_t Closable);
void Box_StartBoxShadow (const char *Width,const char *Title,
void (*FunctionToDrawContextualIcons) (void),
const char *HelpLink);
diff --git a/swad_calendar.c b/swad_calendar.c
index 65b8b094..5495c3a3 100644
--- a/swad_calendar.c
+++ b/swad_calendar.c
@@ -85,8 +85,7 @@ void Cal_PutIconsToSelectFirstDayOfWeek (void)
extern const char *Txt_Calendar;
Box_StartBox (NULL,Txt_Calendar,Cal_PutIconsFirstDayOfWeek,
- Hlp_PROFILE_Preferences_calendar,
- false); // Not closable
+ Hlp_PROFILE_Preferences_calendar,Box_NOT_CLOSABLE);
Cal_ShowFormToSelFirstDayOfWeek (ActChg1stDay,NULL,"ICO25x25B");
Box_EndBox ();
}
@@ -317,8 +316,7 @@ static void Cal_DrawCalendar (Act_Action_t ActionSeeCalendar,
/***** Start box *****/
Box_StartBox (NULL,NULL,FunctionToDrawContextualIcons,
PrintView ? NULL :
- Hlp_Calendar,
- false); // Not closable
+ Hlp_Calendar,Box_NOT_CLOSABLE);
Lay_WriteHeaderClassPhoto (PrintView,false,
Gbl.CurrentIns.Ins.InsCod,
Gbl.CurrentDeg.Deg.DegCod,
diff --git a/swad_centre.c b/swad_centre.c
index 5304200f..6e0ee42d 100644
--- a/swad_centre.c
+++ b/swad_centre.c
@@ -168,9 +168,7 @@ void Ctr_SeeCtrWithPendingDegs (void)
{
/***** Start box and table *****/
Box_StartBoxTable (NULL,Txt_Centres_with_pending_degrees,NULL,
- Hlp_SYSTEM_Hierarchy_pending,
- false, // Not closable
- 2);
+ Hlp_SYSTEM_Hierarchy_pending,Box_NOT_CLOSABLE,2);
/***** Wrtie heading *****/
fprintf (Gbl.F.Out,"
"
@@ -316,12 +314,10 @@ static void Ctr_Configuration (bool PrintView)
/***** Start box *****/
if (PrintView)
Box_StartBox (NULL,NULL,NULL,
- NULL,
- false); // Not closable
+ NULL,Box_NOT_CLOSABLE);
else
Box_StartBox (NULL,NULL,Ctr_PutIconsToPrintAndUpload,
- Hlp_CENTRE_Information,
- false); // Not closable
+ Hlp_CENTRE_Information,Box_NOT_CLOSABLE);
/***** Title *****/
fprintf (Gbl.F.Out,"");
@@ -754,8 +750,7 @@ static void Ctr_ListCentres (void)
/***** Start box *****/
sprintf (Gbl.Title,Txt_Centres_of_INSTITUTION_X,Gbl.CurrentIns.Ins.FullName);
Box_StartBox (NULL,Gbl.Title,Ctr_PutIconsListCentres,
- Hlp_INSTITUTION_Centres,
- false); // Not closable
+ Hlp_INSTITUTION_Centres,Box_NOT_CLOSABLE);
if (Gbl.Ctrs.Num) // There are centres in the current institution
{
@@ -947,8 +942,7 @@ void Ctr_EditCentres (void)
sprintf (Gbl.Title,Txt_Centres_of_INSTITUTION_X,
Gbl.CurrentIns.Ins.FullName);
Box_StartBox (NULL,Gbl.Title,Ctr_PutIconsEditingCentres,
- Hlp_INSTITUTION_Centres,
- false); // Not closable
+ Hlp_INSTITUTION_Centres,Box_NOT_CLOSABLE);
/***** Put a form to create a new centre *****/
Ctr_PutFormToCreateCentre ();
@@ -2229,8 +2223,7 @@ void Ctr_RequestPhoto (void)
/***** Start box *****/
Box_StartBox (NULL,Txt_Photo,NULL,
- NULL,
- false); // Not closable
+ NULL,Box_NOT_CLOSABLE);
/***** Write help message *****/
sprintf (Gbl.Alert.Txt,"%s: %s
"
@@ -2425,9 +2418,7 @@ static void Ctr_PutFormToCreateCentre (void)
/***** Start box and table *****/
Box_StartBoxTable (NULL,Txt_New_centre,NULL,
- NULL,
- false, // Not closable
- 2);
+ NULL,Box_NOT_CLOSABLE,2);
/***** Write heading *****/
Ctr_PutHeadCentresForEdition ();
@@ -2903,9 +2894,7 @@ unsigned Ctr_ListCtrsFound (const char *Query)
NumCtrs,(NumCtrs == 1) ? Txt_centre :
Txt_centres);
Box_StartBoxTable (NULL,Gbl.Title,NULL,
- NULL,
- false, // Not closable
- 2);
+ NULL,Box_NOT_CLOSABLE,2);
/***** Write heading *****/
Ctr_PutHeadCentresForSeeing (false); // Order not selectable
diff --git a/swad_changelog.h b/swad_changelog.h
index 6ef7e144..96ed7368 100644
--- a/swad_changelog.h
+++ b/swad_changelog.h
@@ -239,13 +239,14 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
-#define Log_PLATFORM_VERSION "SWAD 16.243 (2017-06-11)"
+#define Log_PLATFORM_VERSION "SWAD 16.244 (2017-06-11)"
#define CSS_FILE "swad16.235.1.css"
#define JS_FILE "swad16.206.3.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.244: Jun 12, 2017 Code refactoring related with boxes. (221815 lines)
Version 16.243: Jun 12, 2017 Code refactoring related with boxes. (222174 lines)
Version 16.242: Jun 11, 2017 Code refactoring related with boxes. (222128 lines)
Version 16.241.2: Jun 11, 2017 Changes in alignment of dates in statistics. (222131 lines)
diff --git a/swad_chat.c b/swad_chat.c
index 6a01aa48..f518c00d 100644
--- a/swad_chat.c
+++ b/swad_chat.c
@@ -125,8 +125,7 @@ void Cht_ShowListOfAvailableChatRooms (void)
/***** Start box *****/
Box_StartBox (NULL,Txt_Chat_rooms,NULL,
- NULL,
- false); // Not closable
+ NULL,Box_NOT_CLOSABLE);
fprintf (Gbl.F.Out,"
");
/***** Title of top level *****/
@@ -265,9 +264,7 @@ void Cht_ShowListOfChatRoomsWithUsrs (void)
{
/***** Start box and table *****/
Box_StartBoxTable (NULL,Txt_Rooms_with_users,NULL,
- NULL,
- false, // Not closable
- 2);
+ NULL,Box_NOT_CLOSABLE,2);
/***** Write heading *****/
fprintf (Gbl.F.Out,""
diff --git a/swad_connected.c b/swad_connected.c
index 980b0220..d46c683e 100644
--- a/swad_connected.c
+++ b/swad_connected.c
@@ -100,8 +100,7 @@ void Con_ShowConnectedUsrs (void)
sprintf (Gbl.Title,"%s",
Txt_Connected_users);
Box_StartBox (NULL,Gbl.Title,Con_PutIconToUpdateConnected,
- Hlp_USERS_Connected,
- false); // Not closable
+ Hlp_USERS_Connected,Box_NOT_CLOSABLE);
fprintf (Gbl.F.Out,"