[CLEAN] clean code
bzr revid: mva@openerp.com-20111220094257-8k84worc4a4qy2a9
This commit is contained in:
parent
6315f91176
commit
cd73200f28
Binary file not shown.
Binary file not shown.
|
@ -49,10 +49,23 @@ function getDocumentType(){
|
|||
* add or create
|
||||
*/
|
||||
function getOperation() {
|
||||
var operation = document.getElementById('operation').value;
|
||||
var operation = document.getElementById('operation').selectedItem;
|
||||
return operation.value
|
||||
}
|
||||
|
||||
function changeForm() {
|
||||
|
||||
var hidden = false
|
||||
|
||||
if(getOperation() == "create") {
|
||||
hidden = true
|
||||
}
|
||||
document.getElementById('label_box').hidden = hidden
|
||||
document.getElementById('listSearchBox').hidden = hidden
|
||||
document.getElementById('lblsearch').hidden = hidden
|
||||
document.getElementById('txtvalueobj').hidden = hidden
|
||||
document.getElementById('search_button').hidden = hidden
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -31,9 +31,7 @@
|
|||
<label id="lblex3" align="right" width="135" control="section" value="Operation :" class="text-prompt"/>
|
||||
<menulist id="operation" width="150" oncommand="changeForm()">
|
||||
<menupopup>
|
||||
<menuitem label="Attach to an existing one" value="add"/>
|
||||
<menuitem label="Create a new one" value="create"/>
|
||||
|
||||
<menuitem label="Attach to an existing one" value="add"/>
|
||||
</menupopup>
|
||||
</menulist>
|
||||
</row>
|
||||
|
|
Loading…
Reference in New Issue