Version 15.162.1

This commit is contained in:
Antonio Cañas Vargas 2016-03-24 20:43:50 +01:00
parent b225163515
commit c2773f9d72
3 changed files with 16 additions and 5 deletions

View File

@ -1118,6 +1118,12 @@ a:hover /* Default ==> underlined */
{
background-image:linear-gradient(rgba(0,0,0,0),rgba(0,0,0,0.2));
}
.BUTTONS_AFTER_ALERT
{
text-align:center;
vertical-align:middle;
padding:8px 0 16px 0;
}
/********************************** Notice ***********************************/
.NOTICE_CONTAINER_ACTIVE

View File

@ -133,15 +133,16 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 15.162 (2016-03-24)"
#define CSS_FILE "swad15.160.2.css"
#define Log_PLATFORM_VERSION "SWAD 15.162.1 (2016-03-24)"
#define CSS_FILE "swad15.162.1.css"
#define JS_FILE "swad15.131.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 15.162.1: Mar 24, 2016 Changes in button shown after editing courses. (196603 lines)
Version 15.162: Mar 24, 2016 Code refactoring in edition of courses.
When a user creates or edits a course, put button to register him/her. (196576 lines)
When a user creates or edits a course, put button to register him/her. (196593 lines)
Version 15.161.4: Mar 24, 2016 In MESSAGES > Announcements, any user can see obsolete announcements, not only system admins. (196576 lines)
Version 15.161.3: Mar 24, 2016 Changed icon to reset survey. (196577 lines)
Copy file recycle64x64.png to icon directory

View File

@ -2733,6 +2733,8 @@ void Crs_ContEditAfterChgCrs (void)
/***** Write success message showing the change made *****/
Lay_ShowAlert (Lay_SUCCESS,Gbl.Message);
fprintf (Gbl.F.Out,"<div class=\"BUTTONS_AFTER_ALERT\">");
/***** Put button to go to course changed *****/
Crs_PutButtonToGoToCrs (&Gbl.Degs.EditingCrs);
@ -2761,6 +2763,8 @@ void Crs_ContEditAfterChgCrs (void)
}
if (PutButtonToRequestRegistration)
Crs_PutButtonToRegisterInCrs (&Gbl.Degs.EditingCrs);
fprintf (Gbl.F.Out,"</div>");
}
/***** Show the form again *****/
@ -2781,7 +2785,7 @@ static void Crs_PutButtonToGoToCrs (struct Course *Crs)
Act_FormStart (ActSeeCrsInf);
Crs_PutParamCrsCod (Crs->CrsCod);
sprintf (Gbl.Title,Txt_Go_to_X,Crs->ShortName);
Lay_PutConfirmButton (Gbl.Title);
Lay_PutConfirmButtonInline (Gbl.Title);
Act_FormEnd ();
}
}
@ -2798,7 +2802,7 @@ static void Crs_PutButtonToRegisterInCrs (struct Course *Crs)
if (Crs->CrsCod != Gbl.CurrentCrs.Crs.CrsCod) // If the course is different to the current one...
Crs_PutParamCrsCod (Crs->CrsCod);
sprintf (Gbl.Title,Txt_Register_me_in_X,Crs->ShortName);
Lay_PutCreateButton (Gbl.Title);
Lay_PutCreateButtonInline (Gbl.Title);
Act_FormEnd ();
}