[CLEAN] clean code
authorMVA <mva@openerp.com>
Tue, 20 Dec 2011 09:42:57 +0000 (10:42 +0100)
committerMVA <mva@openerp.com>
Tue, 20 Dec 2011 09:42:57 +0000 (10:42 +0100)
bzr revid: mva@openerp.com-20111220094257-8k84worc4a4qy2a9

addons/plugin_thunderbird/plugin/openerp_plugin.xpi
addons/plugin_thunderbird/plugin/openerp_plugin/chrome/openerp_plugin.jar
addons/plugin_thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/js/push.js
addons/plugin_thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/push.xul

index 8880458..a4383d3 100644 (file)
Binary files a/addons/plugin_thunderbird/plugin/openerp_plugin.xpi and b/addons/plugin_thunderbird/plugin/openerp_plugin.xpi differ
index 86c49c4..4c8e4bf 100644 (file)
Binary files a/addons/plugin_thunderbird/plugin/openerp_plugin/chrome/openerp_plugin.jar and b/addons/plugin_thunderbird/plugin/openerp_plugin/chrome/openerp_plugin.jar differ
index 5528bf6..9929ec6 100644 (file)
@@ -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
+}
 
 
 
index b9a17df..f1a53c9 100644 (file)
@@ -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>