Changeset 605
- Timestamp:
- 02/17/09 16:46:36 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web2/addons/job_monarch/js/monarch.js
r604 r605 827 827 { 828 828 id: 'MetricsDataStore', 829 proxy: JobProxy, 830 autoLoad: false, 831 // RB: anto cache store timestamp, dan autoload 829 proxy: new Ext.data.HttpProxy( 830 { 831 url: 'jobstore.php', 832 method: 'POST' 833 }), 834 autoLoad: true, 832 835 baseParams: { task: "GETMETRICS" }, 833 836 reader: 834 837 new Ext.data.JsonReader( 835 838 { 836 root: 837 totalProperty: 838 id: 839 root: 'names', 840 totalProperty: 'total', 841 id: 'id' 839 842 }, 840 843 [{ 841 name: 844 name: 'ID' 842 845 },{ 843 name: 846 name: 'name' 844 847 }] 845 ) 848 ), 849 listeners: 850 { 851 'beforeload': 852 { 853 scope: this, 854 fn: 855 856 function( myStore, myOptions ) 857 { 858 // Add a (bogus) timestamp, to create a unique url and prevent browser caching 859 // 860 myStore.proxy.url = 'jobstore.php?timestamp=' + new Date().getTime(); 861 } 862 } 863 } 846 864 }); 847 865
Note: See TracChangeset
for help on using the changeset viewer.