Changeset 637
- Timestamp:
- 08/03/09 21:21:10 (15 years ago)
- Location:
- trunk/web/addons/job_monarch
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web/addons/job_monarch/jobstore.php
r604 r637 25 25 $queue = isset($_POST['queue']) ? $_POST['queue'] : null; 26 26 $host = isset($_POST['host']) ? $_POST['host'] : null; 27 $metricname = isset($_POST['metricname']) ? $_POST['metricname'] : 'load_one'; 27 $p_metricname = isset($_POST['metricname']) ? $_POST['metricname'] : 'load_one'; 28 29 //print_r( $_POST ); 28 30 29 31 if( $jids != null ) … … 446 448 function getNodes() 447 449 { 448 global $jobs, $jobids, $clustername, $metrics, $jid, $ metricname;450 global $jobs, $jobids, $clustername, $metrics, $jid, $p_metricname; 449 451 global $always_timestamp, $always_constant; 450 452 451 453 $display_nodes = array(); 454 455 $metricname = $p_metricname; 452 456 453 457 printCacheHeaders(); -
trunk/web/addons/job_monarch/js/monarch.js
r636 r637 698 698 function( store, records, options ) 699 699 { 700 if( records.length == 1 ) 700 if( records.length == 1 ) // TODO: if job state is running 701 701 { 702 702 jobid = records[0].get('jid'); … … 959 959 new Ext.DataView( 960 960 { 961 //id: jid, 961 //id: jid, 962 id: 'jobPanel', 962 963 itemSelector: 'thumb', 963 964 title: jid, … … 996 997 { 997 998 id: 'tabPanel', 999 xtype: 'tabpanel', 998 1000 //region: 'center', 999 1001 //bodyStyle: 'background: transparent', … … 1012 1014 tbar: 1013 1015 [ 1016 'Metric name: ', 1014 1017 new Ext.form.ComboBox( 1015 1018 { … … 1026 1029 xtype: 'combo', 1027 1030 width: 100, 1028 myview: view,1031 //myview: view, 1029 1032 listeners: 1030 1033 { … … 1033 1036 function(combo, record, index) 1034 1037 { 1035 var metric 1036 // doe iets 1037 1038 //this.myview.getStore().baseParams.metricname = metric;1039 //this.myview.refresh(); 1040 // RB: misschien zo metric opgeven aan datastore?1041 //items[0].items[0].getStore().baseParams.metric = metric;1038 var metric = record.data.name; 1039 1040 parentPanel = this.findParentByType( 'tabpanel' ); 1041 my_dataview = parentPanel.getActiveTab(); 1042 1043 my_dataview.getStore().baseParams.metricname = metric; 1044 my_dataview.getStore().reload(); 1042 1045 } 1043 1046 }
Note: See TracChangeset
for help on using the changeset viewer.