- Timestamp:
- 09/08/11 12:55:15 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/db_po/po.js
r12020 r12030 188 188 //field descr 189 189 input4 = document.createElement("INPUT"); 190 input4.style.width = 200;190 input4.style.width = 300; 191 191 input4.id = 'newdescr0'; 192 192 switch(addcase) … … 201 201 //fields for keys 202 202 input2 = document.createElement("INPUT"); 203 input2.style.width = 100;203 input2.style.width = 200; 204 204 input2.id = '1key0'; 205 205 cell2.appendChild(input2); … … 261 261 input2 = document.createElement("INPUT"); 262 262 input2.id = '1key0'; 263 input2.style.width = 100;263 input2.style.width = 200; 264 264 if (key1) 265 265 input2.value = key1; … … 337 337 //field for val 338 338 input3 = document.createElement("INPUT"); 339 input3.style.width = 100;339 input3.style.width = 200; 340 340 input3.id = 'newval0'; 341 341 cell3.appendChild(input3); … … 470 470 } 471 471 else 472 textval="<input align='right' id='newval"+index+"' value='"+oldval+"'>";472 textval="<input size='30' align='right' id='newval"+index+"' value='"+oldval+"'>"; 473 473 document.getElementById('val'+index).innerHTML = textval; 474 474 //set field for description 475 document.getElementById('descr'+index).innerHTML = "<input align='right' id='newdescr"+index+"' value='"+olddescr+"'>"; 476 // added to make min/max editable 477 document.getElementById('min'+index).innerHTML = "<input align='right' id='newmin"+index+"' value='"+oldmin+"'>"; 478 document.getElementById('max'+index).innerHTML = "<input align='right' id='newmax"+index+"' value='"+oldmax+"'>"; 475 document.getElementById('descr'+index).innerHTML = "<input size='40' align='right' id='newdescr"+index+"' value='"+olddescr+"'>"; 476 if (oldtype=='int' || oldtype=='float') 477 { 478 document.getElementById('min'+index).innerHTML = "<input size='5' align='right' id='newmin"+index+"' value='"+oldmin+"'>"; 479 document.getElementById('max'+index).innerHTML = "<input size='5' align='right' id='newmax"+index+"' value='"+oldmax+"'>"; 480 } 479 481 /* 480 482 //set field for type
Note:
See TracChangeset
for help on using the changeset viewer.