Commits

Genki Sugawara committed 8ce5a34

import exporter.js

Comments (0)

Files changed (2)

Resources/chrome/content/main.js

 Components.utils.import('resource://r53fox/preferences.jsm');
 
 function onLoad() {
+  $exp = new Exporter();
+
   var tree = $('hosted-zone-tree');
   $view = new HostedZoneTreeView();
   tree.view = $view;

Resources/chrome/content/main.xul

 
   <!-- scripts -->
   <script src="utils.js" />
+  <script src="exporter.js" />
   <script src="main.js" />
 
   <box>
     <menubar>
       <menu label="File">
         <menupopup>
+          <menuitem label="Export Data to JSON" oncommand="$exp.exportData();" />
+          <menuseparator />
           <menuitem label="Exit" oncommand="window.close();" />
         </menupopup>
       </menu>