CurrencyStore.js (427B)
1 Ext.define("PartKeepr.Data.Store.CurrencyStore", { 2 extend: "Ext.data.Store", 3 fields: ["code", "name", "symbol"], 4 5 constructor: function () 6 { 7 this.callParent(arguments); 8 9 this.setProxy({ 10 url: PartKeepr.getBasePath() + "/api/currencies", 11 type: "ajax", 12 reader: { 13 type: 'json', 14 rootProperty: '' 15 } 16 }); 17 } 18 });