");
@@ -743,8 +746,9 @@ static void Ctr_ListCentres (void)
/***** Start frame *****/
sprintf (Gbl.Title,Txt_Centres_of_INSTITUTION_X,Gbl.CurrentIns.Ins.FullName);
- Lay_StartRoundFrame (NULL,Gbl.Title,
- Ctr_PutIconsListCentres,Hlp_INSTITUTION_Centres);
+ Lay_StartRoundFrame (NULL,Gbl.Title,Ctr_PutIconsListCentres,
+ Hlp_INSTITUTION_Centres,
+ false); // Not closable
if (Gbl.Ctrs.Num) // There are centres in the current institution
{
@@ -936,7 +940,8 @@ void Ctr_EditCentres (void)
sprintf (Gbl.Title,Txt_Centres_of_INSTITUTION_X,
Gbl.CurrentIns.Ins.FullName);
Lay_StartRoundFrame (NULL,Gbl.Title,Ctr_PutIconsEditingCentres,
- Hlp_INSTITUTION_Centres);
+ Hlp_INSTITUTION_Centres,
+ false); // Not closable
/***** Put a form to create a new centre *****/
Ctr_PutFormToCreateCentre ();
@@ -2216,7 +2221,9 @@ void Ctr_RequestPhoto (void)
Act_FormStart (ActRecCtrPho);
/***** Start frame *****/
- Lay_StartRoundFrame (NULL,Txt_Photo,NULL,NULL);
+ Lay_StartRoundFrame (NULL,Txt_Photo,NULL,
+ NULL,
+ false); // Not closable
/***** Write help message *****/
sprintf (Gbl.Alert.Txt,"%s: %s
"
@@ -2410,7 +2417,10 @@ static void Ctr_PutFormToCreateCentre (void)
Lay_ShowErrorAndExit ("You can not edit centres.");
/***** Start frame *****/
- Lay_StartRoundFrameTable (NULL,Txt_New_centre,NULL,NULL,2);
+ Lay_StartRoundFrameTable (NULL,Txt_New_centre,NULL,
+ NULL,
+ false, // Not closable
+ 2);
/***** Write heading *****/
Ctr_PutHeadCentresForEdition ();
@@ -2885,7 +2895,10 @@ unsigned Ctr_ListCtrsFound (const char *Query)
sprintf (Gbl.Title,"%u %s",
NumCtrs,(NumCtrs == 1) ? Txt_centre :
Txt_centres);
- Lay_StartRoundFrameTable (NULL,Gbl.Title,NULL,NULL,2);
+ Lay_StartRoundFrameTable (NULL,Gbl.Title,NULL,
+ NULL,
+ false, // Not closable
+ 2);
Ctr_PutHeadCentresForSeeing (false); // Order not selectable
/***** List the centres (one row per centre) *****/
diff --git a/swad_changelog.h b/swad_changelog.h
index 67075ad9a..5c75099d5 100644
--- a/swad_changelog.h
+++ b/swad_changelog.h
@@ -231,6 +231,7 @@
// TODO: Fix bug: Error when a link end in a dot. Example: "A guide to building..." --> "A guide to building._..url" (two dots)
// TODO: List of places in drop-down menu should be ordered by name
+// TODO: In centre configuration, place should be editable
// TODO: Cuando sólo se cambian los grupos y no el rol de un profesor ya existente, no sale ningún mensaje. se haga lo que se haga en la edición debería salir un mensaje del tipo "Cambios realizados"
@@ -242,13 +243,14 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
-#define Log_PLATFORM_VERSION "SWAD 16.237 (2017-06-09)"
+#define Log_PLATFORM_VERSION "SWAD 16.238 (2017-06-10)"
#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.238: Jun 10, 2017 Icon to close frames. (221803 lines)
Version 16.237: Jun 09, 2017 Code refactoring related to users belonging to a course.
Changes in permissions to access students by non-editing teachers. (221303 lines)
Version 16.236: Jun 08, 2017 Changes in permissions related to record card contextual commands.
diff --git a/swad_chat.c b/swad_chat.c
index 51ce8e034..1e7e70e7a 100644
--- a/swad_chat.c
+++ b/swad_chat.c
@@ -123,7 +123,9 @@ void Cht_ShowListOfAvailableChatRooms (void)
Usr_GetMyDegrees ();
/***** Table start *****/
- Lay_StartRoundFrame (NULL,Txt_Chat_rooms,NULL,NULL);
+ Lay_StartRoundFrame (NULL,Txt_Chat_rooms,NULL,
+ NULL,
+ false); // Not closable
fprintf (Gbl.F.Out,"
");
/***** Title of top level *****/
@@ -261,7 +263,10 @@ void Cht_ShowListOfChatRoomsWithUsrs (void)
if (NumRows > 0) // If not empty chat rooms found
{
/***** Table start *****/
- Lay_StartRoundFrameTable (NULL,Txt_Rooms_with_users,NULL,NULL,2);
+ Lay_StartRoundFrameTable (NULL,Txt_Rooms_with_users,NULL,
+ NULL,
+ false, // Not closable
+ 2);
fprintf (Gbl.F.Out,""
""
"%s"
diff --git a/swad_connected.c b/swad_connected.c
index 80e63977a..c8e560efc 100644
--- a/swad_connected.c
+++ b/swad_connected.c
@@ -97,8 +97,9 @@ void Con_ShowConnectedUsrs (void)
/* Current time */
sprintf (Gbl.Title,"%s",
Txt_Connected_users);
- Lay_StartRoundFrame (NULL,Gbl.Title,
- Con_PutIconToUpdateConnected,Hlp_USERS_Connected);
+ Lay_StartRoundFrame (NULL,Gbl.Title,Con_PutIconToUpdateConnected,
+ Hlp_USERS_Connected,
+ false); // Not closable
fprintf (Gbl.F.Out," |