diff --git a/swad_changelog.h b/swad_changelog.h index 8fe66798..3a6470a9 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -223,13 +223,14 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 16.195 (2017-04-29)" +#define Log_PLATFORM_VERSION "SWAD 16.195.1 (2017-04-29)" #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.195.1: Apr 29, 2017 Code refactoring in edition of groups. (? lines) Version 16.195: Apr 29, 2017 Changes in edition of groups. (218470 lines) Version 16.194.22:Apr 29, 2017 Changes in edition of groups. (218433 lines) Version 16.194.21:Apr 29, 2017 Changes in edition of groups. (218435 lines) diff --git a/swad_group.c b/swad_group.c index 3d197313..a28a34f2 100644 --- a/swad_group.c +++ b/swad_group.c @@ -40,6 +40,9 @@ /*************************** Internal constants ******************************/ /*****************************************************************************/ +#define Grp_SECTION_GROUP_TYPES "grp_types" +#define Grp_SECTION_GROUPS "grps" + /*****************************************************************************/ /***************************** Internal types ********************************/ /*****************************************************************************/ @@ -1144,7 +1147,7 @@ static void Grp_ListGroupTypesForEdition (void) /* Put icon to remove group type */ fprintf (Gbl.F.Out,"" ""); - Act_FormStartAnchor (ActReqRemGrpTyp,"group_types"); + Act_FormStartAnchor (ActReqRemGrpTyp,Grp_SECTION_GROUP_TYPES); Grp_PutParamGrpTypCod (Gbl.CurrentCrs.Grps.GrpTypes.LstGrpTypes[NumGrpTyp].GrpTypCod); Lay_PutIconRemove (); Act_FormEnd (); @@ -1152,7 +1155,7 @@ static void Grp_ListGroupTypesForEdition (void) /* Name of group type */ fprintf (Gbl.F.Out,""); - Act_FormStartAnchor (ActRenGrpTyp,"group_types"); + Act_FormStartAnchor (ActRenGrpTyp,Grp_SECTION_GROUP_TYPES); Grp_PutParamGrpTypCod (Gbl.CurrentCrs.Grps.GrpTypes.LstGrpTypes[NumGrpTyp].GrpTypCod); fprintf (Gbl.F.Out,""); - Act_FormStartAnchor (ActChgMdtGrpTyp,"group_types"); + Act_FormStartAnchor (ActChgMdtGrpTyp,Grp_SECTION_GROUP_TYPES); Grp_PutParamGrpTypCod (Gbl.CurrentCrs.Grps.GrpTypes.LstGrpTypes[NumGrpTyp].GrpTypCod); fprintf (Gbl.F.Out,""); - Act_FormStartAnchor (ActChgTimGrpTyp,"group_types"); + Act_FormStartAnchor (ActChgTimGrpTyp,Grp_SECTION_GROUP_TYPES); Grp_PutParamGrpTypCod (Gbl.CurrentCrs.Grps.GrpTypes.LstGrpTypes[NumGrpTyp].GrpTypCod); fprintf (Gbl.F.Out,"" "" @@ -1328,7 +1331,7 @@ static void Grp_ListGroupsForEdition (void) /* Write icon to remove group */ fprintf (Gbl.F.Out,"" "
"); - Act_FormStartAnchor (ActReqRemGrp,"groups"); + Act_FormStartAnchor (ActReqRemGrp,Grp_SECTION_GROUPS); Grp_PutParamGrpCod (Grp->GrpCod); Lay_PutIconRemove (); Act_FormEnd (); @@ -1338,7 +1341,7 @@ static void Grp_ListGroupsForEdition (void) fprintf (Gbl.F.Out,""); Act_FormStartAnchor (Grp->Open ? ActCloGrp : ActOpeGrp, - "groups"); + Grp_SECTION_GROUPS); Grp_PutParamGrpCod (Grp->GrpCod); sprintf (Gbl.Title, Grp->Open ? Txt_Group_X_open_click_to_close_it : @@ -1359,7 +1362,7 @@ static void Grp_ListGroupsForEdition (void) fprintf (Gbl.F.Out,""); Act_FormStartAnchor (Grp->FileZones ? ActDisFilZonGrp : ActEnaFilZonGrp, - "groups"); + Grp_SECTION_GROUPS); Grp_PutParamGrpCod (Grp->GrpCod); sprintf (Gbl.Title, Grp->FileZones ? Txt_File_zones_of_the_group_X_enabled_click_to_disable_them : @@ -1378,7 +1381,7 @@ static void Grp_ListGroupsForEdition (void) /* Group type */ fprintf (Gbl.F.Out,""); - Act_FormStartAnchor (ActChgGrpTyp,"groups"); + Act_FormStartAnchor (ActChgGrpTyp,Grp_SECTION_GROUPS); Grp_PutParamGrpCod (Grp->GrpCod); fprintf (Gbl.F.Out,""); - Act_FormStartAnchor (ActRenGrp,"groups"); + Act_FormStartAnchor (ActRenGrp,Grp_SECTION_GROUPS); Grp_PutParamGrpCod (Grp->GrpCod); fprintf (Gbl.F.Out,""); - Act_FormStartAnchor (ActChgMaxStdGrp,"groups"); + Act_FormStartAnchor (ActChgMaxStdGrp,Grp_SECTION_GROUPS); Grp_PutParamGrpCod (Grp->GrpCod); fprintf (Gbl.F.Out,"