readded and fixed #4781: new cache size nano (commit b300630 got lost)

compatibility:
- is supported by new OKAPI rev. 495
- Ocprop compatibility is being checked
- is returned as "other" size in XML interface size field, and as "nano" in new size2 field
- is returned as Micro in GPX files
This commit is contained in:
following
2012-11-10 16:48:21 +01:00
parent 4818246331
commit b75afd18e2
9 changed files with 43 additions and 19 deletions

View File

@ -20,6 +20,7 @@
<!--
var mnAttributesShowCat2 = 1;
var maAttributes = new Array({attributes_jsarray});
var cachesizes = {cachesizes};
function _sbn_click()
{
@ -163,7 +164,7 @@ function sync_options(element)
if (tmpcachetype == "") tmpcachetype = "none";
var tmpcachesize = "";
for (i = 1; i <= 7; i++)
for (i = 1; i <= cachesizes; i++)
{
if (document.getElementById('cachesize' + i).checked == true)
{
@ -343,16 +344,16 @@ function switchAttributeCat2()
<td>
<table class="table">
<tr>
<td><input type="checkbox" id="cachesize8" name="cachesize8" value="8" onclick="javascript:sync_options(this)" class="checkbox" {cachesize2checked} /> <label for="cachesize2">{t}nano{/t}</label>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td><input type="checkbox" id="cachesize2" name="cachesize2" value="2" onclick="javascript:sync_options(this)" class="checkbox" {cachesize2checked} /> <label for="cachesize2">{t}micro{/t}</label></td>
<td><input type="checkbox" id="cachesize3" name="cachesize3" value="3" onclick="javascript:sync_options(this)" class="checkbox" {cachesize3checked} /> <label for="cachesize3">{t}small{/t}</label></td>
<td><input type="checkbox" id="cachesize4" name="cachesize4" value="4" onclick="javascript:sync_options(this)" class="checkbox" {cachesize4checked} /> <label for="cachesize4">{t}normal{/t}</label></td>
<td><input type="checkbox" id="cachesize5" name="cachesize5" value="5" onclick="javascript:sync_options(this)" class="checkbox" {cachesize5checked} /> <label for="cachesize5">{t}large{/t}</label></td>
</tr>
<tr>
<td><input type="checkbox" id="cachesize5" name="cachesize5" value="5" onclick="javascript:sync_options(this)" class="checkbox" {cachesize5checked} /> <label for="cachesize5">{t}large{/t}</label></td>
<td><input type="checkbox" id="cachesize6" name="cachesize6" value="6" onclick="javascript:sync_options(this)" class="checkbox" {cachesize6checked} /> <label for="cachesize6">{t}very large{/t}</label></td>
<td><input type="checkbox" id="cachesize7" name="cachesize7" value="7" onclick="javascript:sync_options(this)" class="checkbox" {cachesize7checked} /> <label for="cachesize7">{t}no container{/t}</label></td>
<td><input type="checkbox" id="cachesize1" name="cachesize1" value="1" onclick="javascript:sync_options(this)" class="checkbox" {cachesize1checked} /> <label for="cachesize1">{t}other size{/t}</label></td>
<td>&nbsp;</td>
</tr>
</table>
</td>