Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: oldheating gps motorhome heating
Revision 31:b5ca802195a7, committed 2019-01-18
- Comitter:
- andrewboyson
- Date:
- Fri Jan 18 11:48:07 2019 +0000
- Parent:
- 30:6a08abbe6301
- Child:
- 32:dabc3bb12d7a
- Commit message:
- Tidied name of PageAddAjaxHex to PageAddAjaxInput
Changed in this revision
--- a/clock/http-clock-html.c Thu Jan 17 13:07:53 2019 +0000
+++ b/clock/http-clock-html.c Fri Jan 18 11:48:07 2019 +0000
@@ -36,9 +36,9 @@
PageAddH2("UTC");
PageAddAjaxToggle(16.0, "Enable epoch change" , "ajax-leap-enable" , "chg-clock-leap-enable" );
PageAddAjaxToggle(16.0, "Direction of next epoch" , "ajax-leap-forward" , "chg-clock-leap-forward");
- PageAddAjaxHex (12.0, "Year next epoch starts" , 5.2 , "ajax-leap-year" , "set-clock-leap-year" );
- PageAddAjaxHex (12.0, "Month next epoch starts" , 5.2 , "ajax-leap-month" , "set-clock-leap-month" );
- PageAddAjaxHex (12.0, "Current era offset" , 5.2 , "ajax-leap-count" , "set-clock-leap-count" );
+ PageAddAjaxInput (12.0, "Year next epoch starts" , 5.2 , "ajax-leap-year" , "set-clock-leap-year" );
+ PageAddAjaxInput (12.0, "Month next epoch starts" , 5.2 , "ajax-leap-month" , "set-clock-leap-month" );
+ PageAddAjaxInput (12.0, "Current era offset" , 5.2 , "ajax-leap-count" , "set-clock-leap-count" );
HttpAddText("<div><button type='button' onclick='DisplayLeap()'>Display Leap</button></div>\r\n");
--- a/net-trace/http-trace-html.c Thu Jan 17 13:07:53 2019 +0000
+++ b/net-trace/http-trace-html.c Fri Jan 18 11:48:07 2019 +0000
@@ -11,7 +11,7 @@
PageAddH1(PageSite, "Trace");
HttpAddText("<h2>General</h2>\r\n");
- PageAddAjaxHex ( 6.0, "Trace host" , 5.2 , "ajax-trace-net-host" , "set-trace-net-host" );
+ PageAddAjaxInput ( 6.0, "Trace host" , 5.2 , "ajax-trace-net-host" , "set-trace-net-host" );
PageAddAjaxToggle(10.0, "Trace stack" , "ajax-trace-net-stack" , "chg-trace-net-stack" );
PageAddAjaxToggle(10.0, "Trace new line" , "ajax-trace-net-newline", "chg-trace-net-newline");
PageAddAjaxToggle(10.0, "Trace verbose" , "ajax-trace-net-verbose", "chg-trace-net-verbose");
--- a/page/page.c Thu Jan 17 13:07:53 2019 +0000
+++ b/page/page.c Fri Jan 18 11:48:07 2019 +0000
@@ -227,7 +227,7 @@
HttpAddText("</div></div>\r\n");
}
-void PageAddAjaxHex(float labelwidth, char* label, float inputwidth, char* id, char* request)
+void PageAddAjaxInput(float labelwidth, char* label, float inputwidth, char* id, char* request)
{
char text[100];
--- a/page/page.h Thu Jan 17 13:07:53 2019 +0000 +++ b/page/page.h Fri Jan 18 11:48:07 2019 +0000 @@ -31,4 +31,4 @@ extern void PageAddCheckInput (char* action, char* label, char* name, char* button); extern void PageAddAjaxToggle (float labelwidth, char* label, char* id, char* request); -extern void PageAddAjaxHex (float labelwidth, char* label, float inputwidth, char* id, char* request); +extern void PageAddAjaxInput (float labelwidth, char* label, float inputwidth, char* id, char* request);