[CLEAN] create and open in document
authorMVA <mva@openerp.com>
Thu, 22 Dec 2011 10:48:13 +0000 (11:48 +0100)
committerMVA <mva@openerp.com>
Thu, 22 Dec 2011 10:48:13 +0000 (11:48 +0100)
bzr revid: mva@openerp.com-20111222104813-nnozkk34jyvx9phr

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/overlay.xul
addons/plugin_thunderbird/plugin/openerp_plugin/chrome/openerp_plugin/content/push_dialog.xul

index 09b3c23..0d1fd8f 100644 (file)
Binary files a/addons/plugin_thunderbird/plugin/openerp_plugin.xpi and b/addons/plugin_thunderbird/plugin/openerp_plugin.xpi differ
index 518cdaa..6d6489c 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 b87ade0..47c7e3a 100644 (file)
@@ -20,7 +20,7 @@
                       />\r
 \r
             <menuitem id="tiny-opendocument" label="document"\r
-                      oncommand="check(open_document);"\r
+                      oncommand="window.open('chrome://openerp_plugin/content/push_dialog.xul', '', 'chrome', 'resizable=yes');"\r
                       image="&menuicon.value;"\r
                       class="menuitem-iconic"\r
                       tooltiptext="&opendocumenttooltip.value;"\r
index b87eadc..147b8f0 100644 (file)
@@ -13,7 +13,9 @@
         <hbox>  
                <button label="Cancel" accesskey="c" oncommand="window.close();"/>
                <button id="push_new" label="Push Email" accesskey="a" oncommand=" window.close();window.open('chrome://openerp_plugin/content/push.xul', '', 'chrome', resizable='yes');"/>
-               <button id="open" label="Open Document" accesskey="c" oncommand="window.close();window.open('chrome://openerp_plugin/content/create_new.xul', '', 'chrome', resizable='yes');"/>
+               <button id="open" label="Create Document" accesskey="c" oncommand="window.close();window.open('chrome://openerp_plugin/content/create_new.xul', '', 'chrome', resizable='yes');"/>
+               <button id="opendocument" label="Open Document" accesskey="d" oncommand="check(open_document);"/>
+            <!-- link open document and show create or open but not both-->
         </hbox>  
     </vbox>  
 </window>