Webtags (preserving history): Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
=== JavaScript example ===
 
Some people might feel the admin interface could be improved on some of its pages by showing additional information. It is possible from MX 3.7.0 to obtain extra information.
I have a script that works with the standard log editor in the admin interface to calculate (and recalculate after any edit) the derived fields from the source fields. To make these calculations work for anyone, I need to find out what units the Cumulus MX user is using. Here is the code (with the api call written using jQuery):
 
I havewanted ato scriptimprove the log file editing pages, and that workswas partly by adding validation, and partly by changing the way the editing is done. withFor the standard log file editor inI thewanted adminto interfaceachieve even more, I added a script to calculate (and recalculate after any edit) the derived fields from the source fields. To make these calculations work for anyone, I needneeded to find out what units the Cumulus MX user is using. HereAlthough ismy therevised codelog (withfile theediting apidid callnot writtenmake usingit jQuery):into a public release, I can share the units obtaining api here.
 
Here is the code (with the api call written using jQuery):
<pre>/* Some new variables connected with new api call (MX 3.7.0) */
var tempLetter; // C or F