partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

SearchWindow.js (795B)


      1 Ext.define("PartKeepr.Components.OctoPart.SearchWindow", {
      2     extend: "Ext.window.Window",
      3     title: i18n("Octopart Search"),
      4     iconCls: "partkeepr-icon octopart",
      5     width: 750,
      6     height: 300,
      7     layout: 'fit',
      8     modal: true,
      9     items: [
     10         {
     11             xtype: "octopartSearchPanel",
     12             itemId: 'octopartSearchPanel'
     13         }
     14     ],
     15     initComponent: function ()
     16     {
     17         this.callParent(arguments);
     18         this.down("#octopartSearchPanel").on("refreshData", function ()
     19         {
     20             this.fireEvent("refreshData");
     21         }, this);
     22     },
     23     startSearch: function (query)
     24     {
     25         this.down("#octopartSearchPanel").startSearch(query);
     26     },
     27     setPart: function (part)
     28     {
     29         this.down("#octopartSearchPanel").setPart(part);
     30     }
     31 });