- Timestamp:
- 07/10/08 16:27:00 (15 years ago)
- Location:
- trunk/web2/addons/job_monarch
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web2/addons/job_monarch/header.php
r532 r536 161 161 162 162 $tpl->assign("node_menu", $node_menu); 163 $tpl->assign("cluster", $clustername); 163 164 164 165 # Make sure that no data is cached.. -
trunk/web2/addons/job_monarch/jobstore.php
r535 r536 1 1 <?php 2 2 3 $clustername = "GINA Cluster"; 4 $cluster= "GINA Cluster"; 5 $c= "GINA Cluster"; 3 $c = $_POST["c"]; 4 $clustername = $c; 5 $cluster = $c; 6 7 global $c, $clustername, $cluster; 8 9 $HTTP_POST_VARS["c"] = $c; 10 $_GET["c"] = $c; 6 11 7 12 global $c, $clustername, $cluster; -
trunk/web2/addons/job_monarch/js/jobgrid.js
r535 r536 5 5 var JobProxy; 6 6 7 Ext.onReady(function(){ 7 //Ext.onReady( initJobGrid() ); 8 9 function initJobGrid() { 8 10 9 11 Ext.QuickTips.init(); 10 12 11 13 JobProxy = new Ext.data.HttpProxy({ 12 url: 'jobstore.php ?c=GINA Cluster',14 url: 'jobstore.php', 13 15 method: 'POST' 14 16 }); … … 144 146 }); 145 147 146 function debug(){147 JobListingEditorGrid.addListener({148 149 /**150 * activate : ( Ext.Panel p )151 * Fires after the Panel has been visually activated. Note that152 * Panels do not directly support being activated, but some Panel153 * subclasses do (like Ext.Window). Panels which are child154 * Components of a TabPanel fire the activate and deactivate events155 * under the control of the TabPanel.156 * Listeners will be called with the following arguments:157 * p : Ext.Panel158 * The Panel that has been activated.159 */160 'activate':{161 fn: function(panel){162 console.log('Grid listener fired (activate), arguments:',arguments);163 }164 ,scope:this165 }166 167 /**168 * add : ( Ext.Container this, Ext.Component component, Number index )169 * Fires after any Ext.Component is added or inserted into the container.170 * Listeners will be called with the following arguments:171 * this : Ext.Container172 * component : Ext.Component173 * The component that was added174 * index : Number175 * The index at which the component was added to the container's items collection176 */177 ,'add':{178 fn: function(container, component, index){179 console.log('Grid listener fired (add), arguments:',arguments);180 }181 ,scope:this182 }183 184 /**185 * afteredit : ( Object e )186 * Fires after a cell is edited.187 * grid - This grid188 * record - The record being edited189 * field - The field name being edited190 * value - The value being set191 * originalValue - The original value for the field, before the edit.192 * row - The grid row index193 * column - The grid column index194 *195 * Listeners will be called with the following arguments:196 * e : Object197 * An edit event (see above for description)198 */199 ,'afteredit':{200 fn: function(event){201 console.log('Grid listener fired (afteredit), arguments:',arguments);202 }203 ,scope:this204 }205 206 /**207 * afterlayout : ( Ext.Container this, ContainerLayout layout )208 * Fires when the components in this container are arranged by the209 * associated layout manager. Listeners will be called with the210 * following arguments:211 * this : Ext.Container212 * layout : ContainerLayout213 * The ContainerLayout implementation for this container214 */215 ,'afterlayout':{216 fn: function(container, layout){217 console.log('Grid listener fired (afterlayout), arguments:',arguments);218 }219 ,scope:this220 }221 222 /**223 * beforeadd : ( Ext.Container this, Ext.Component component, Number index )224 * Fires before any Ext.Component is added or inserted into the225 * container. A handler can return false to cancel the add.226 * Listeners will be called with the following arguments:227 * this : Ext.Container228 * component : Ext.Component229 * The component being added230 * index : Number231 * The index at which the component will be added to the232 * container's items collection233 */234 ,'beforeadd':{235 fn: function(container, component, index){236 console.log('Grid listener fired (beforeadd), arguments:',arguments);237 }238 ,scope:this239 }240 241 /**242 * beforeadd : ( Ext.Container this, Ext.Component component, Number index )243 * Fires before any Ext.Component is added or inserted into the244 * container. A handler can return false to cancel the add.245 * Listeners will be called with the following arguments:246 * this : Ext.Container247 * component : Ext.Component248 * The component being added249 * index : Number250 * The index at which the component will be added to the251 * container's items collection252 */253 ,'beforeadd':{254 fn: function(container, component, index){255 console.log('Grid listener fired (beforeadd), arguments:',arguments);256 }257 ,scope:this258 }259 260 /**261 * beforeclose : ( Ext.Panel p )262 * Fires before the Panel is closed. Note that Panels do not263 * directly support being closed, but some Panel subclasses do264 * (like Ext.Window). This event only applies to such subclasses. A265 * handler can return false to cancel the close.266 * Listeners will be called with the following arguments:267 * p : Ext.Panel268 * The Panel being closed.269 */270 ,'beforeclose':{271 fn: function(panel){272 console.log('Grid listener fired (beforeclose), arguments:',arguments);273 }274 ,scope:this275 }276 277 /**278 * beforecollapse : ( Ext.Panel p, Boolean animate )279 * Fires before the Panel is collapsed. A handler can return280 * false to cancel the collapse.281 * Listeners will be called with the following arguments:282 * p : Ext.Panel283 * the Panel being collapsed.284 * animate : Boolean285 * True if the collapse is animated, else false.286 */287 ,'beforecollapse':{288 fn: function(panel, animate){289 console.log('Grid listener fired (beforecollapse), arguments:',arguments);290 }291 ,scope:this292 }293 294 /**295 * beforedestroy : ( Ext.Component this )296 * Fires before the component is destroyed. Return false to stop297 * the destroy.298 * Listeners will be called with the following arguments:299 * this : Ext.Component300 */301 ,'beforedestroy':{302 fn: function(component){303 console.log('Grid listener fired (beforedestroy), arguments:',arguments);304 }305 ,scope:this306 }307 308 /**309 * beforeedit : ( Object e )310 * Fires before cell editing is triggered. The edit event object311 * has the following properties312 * grid - This grid313 * record - The record being edited314 * field - The field name being edited315 * value - The value for the field being edited.316 * row - The grid row index317 * column - The grid column index318 * cancel - Set this to true to cancel the edit or return false319 * from your handler.320 *321 * Listeners will be called with the following arguments:322 * e : Object323 * An edit event (see above for description)324 */325 ,'beforeedit':{326 fn: function(event){327 console.log('Grid listener fired (beforeedit), arguments:',arguments);328 }329 ,scope:this330 }331 332 /**333 * beforeexpand : ( Ext.Panel p, Boolean animate334 * Fires before the Panel is expanded. A handler can return false to cancel the expand.335 * Listeners will be called with the following arguments:336 * p : Ext.Panel337 * The Panel being expanded.338 * animate : Boolean339 * True if the expand is animated, else false.340 */341 ,'beforeexpand':{342 fn: function(panel, animate){343 console.log('Grid listener fired (beforeexpand), arguments:',arguments);344 }345 ,scope:this346 }347 348 /**349 * beforehide : ( Ext.Component this )350 * Fires before the component is hidden. Return false to stop the hide.351 * Listeners will be called with the following arguments:352 * this : Ext.Component353 */354 ,'beforehide':{355 fn: function(component){356 console.log('Grid listener fired (beforehide), arguments:',arguments);357 }358 ,scope:this359 }360 361 /**362 * beforeremove : ( Ext.Container this, Ext.Component component )363 * Fires before any Ext.Component is removed from the container. A handler364 * an return false to cancel the remove.365 * Listeners will be called with the following arguments:366 * this : Ext.Container367 * component : Ext.Component368 * The component being removed369 */370 ,'beforeremove':{371 fn: function(container, component){372 console.log('Grid listener fired (beforeremove), arguments:',arguments);373 }374 ,scope:this375 }376 377 /**378 * beforerender : ( Ext.Component this )379 * Fires before the component is rendered. Return false to stop the render.380 * Listeners will be called with the following arguments:381 * this : Ext.Component382 */383 ,'beforerender':{384 fn: function(component){385 console.log('04 - Grid listener fired (beforerender), arguments:',arguments);386 }387 ,scope:this388 }389 390 /**391 * beforeshow : ( Ext.Component this )392 * Fires before the component is shown. Return false to stop the show.393 * Listeners will be called with the following arguments:394 * this : Ext.Component395 */396 ,'beforeshow':{397 fn: function(component){398 console.log('Grid listener fired (beforeshow), arguments:',arguments);399 }400 ,scope:this401 }402 403 /**404 * beforestaterestore : ( Ext.Component this, Object state )405 * Fires before the state of the component is restored. Return false to stop the restore.406 * Listeners will be called with the following arguments:407 * this : Ext.Component408 * state : Object409 * The hash of state values410 */411 ,'beforestaterestore':{412 fn: function(component, state){413 console.log('Grid listener fired (beforestaterestore), arguments:',arguments);414 }415 ,scope:this416 }417 418 /**419 * beforestatesave : ( Ext.Component this, Object state )420 * Fires before the state of the component is saved to the configured421 * state provider. Return false to stop the save.422 * Listeners will be called with the following arguments:423 * this : Ext.Component424 * state : Object425 * The hash of state values426 */427 ,'beforestatesave':{428 fn: function(component, state){429 console.log('Grid listener fired (beforestatesave), arguments:',arguments);430 }431 ,scope:this432 }433 434 /**435 * bodyresize : ( Ext.Panel p, Number width, Number height )436 * Fires after the Panel has been resized.437 * Listeners will be called with the following arguments:438 * p : Ext.Panel439 * the Panel which has been resized.440 * width : Number441 * The Panel's new width.442 * height : Number443 * The Panel's new height.444 */445 ,'bodyresize':{446 fn: function(panel, width, height){447 console.log('08 - Grid listener fired (bodyresize), arguments:',arguments);448 }449 ,scope:this450 }451 452 /**453 * bodyscroll : ( Number scrollLeft, Number scrollTop )454 * Fires when the body element is scrolled455 * Listeners will be called with the following arguments:456 * scrollLeft : Number457 * scrollTop : Number458 */459 ,'bodyscroll':{460 fn: function(scrollLeft, scrollTop){461 console.log('Grid listener fired (bodyscroll), arguments:',arguments);462 }463 ,scope:this464 }465 466 /**467 * cellclick : ( Grid this, Number rowIndex, Number columnIndex, Ext.EventObject e )468 * Fires when a cell is clicked. The data for the cell is drawn from the469 * Record for this row. To access the data in the listener function use the470 * following technique:471 * function(grid, rowIndex, columnIndex, e) {472 * var record = grid.getStore().getAt(rowIndex); // Get the Record473 * var fieldName = grid.getColumnModel().getDataIndex(columnIndex); // Get field name474 * var data = record.get(fieldName);475 * }476 * Listeners will be called with the following arguments:477 * this : Grid478 * rowIndex : Number479 * columnIndex : Number480 * e : Ext.EventObject481 */482 ,'cellclick':{483 fn: function(grid, rowIndex, columnIndex, event){484 console.log('Grid listener fired (cellclick), arguments:',arguments);485 }486 ,scope:this487 }488 489 /**490 * cellcontextmenu : ( Grid this, Number rowIndex, Number cellIndex, Ext.EventObject e )491 * Fires when a cell is right clicked492 * Listeners will be called with the following arguments:493 * rowIndex : Number494 * cellIndex : Number495 * e : Ext.EventObject496 */497 ,'cellcontextmenu':{498 fn: function(grid, rowIndex, cellIndex, event){499 console.log('Grid listener fired (cellcontextmenu), arguments:',arguments);500 }501 ,scope:this502 }503 504 /**505 * celldblclick : ( Grid this, Number rowIndex, Number columnIndex, Ext.EventObject e )506 * Fires when a cell is double clicked507 * Listeners will be called with the following arguments:508 * this : Grid509 * rowIndex : Number510 * columnIndex : Number511 * e : Ext.EventObject512 */513 ,'celldblclick':{514 fn: function(grid, rowIndex, columnIndex, event){515 console.log('Grid listener fired (celldblclick), arguments:',arguments);516 }517 ,scope:this518 }519 520 /**521 * cellmousedown : ( Grid this, Number rowIndex, Number columnIndex, Ext.EventObject e )522 * Fires before a cell is clicked523 * Listeners will be called with the following arguments:524 * this : Grid525 * rowIndex : Number526 * columnIndex : Number527 * e : Ext.EventObject528 */529 ,'cellmousedown':{530 fn: function(grid, rowIndex, columnIndex, event){531 console.log('Grid listener fired (cellmousedown), arguments:',arguments);532 }533 ,scope:this534 }535 536 /**537 * click : ( Ext.EventObject e )538 * The raw click event for the entire grid.539 * Listeners will be called with the following arguments:540 * e : Ext.EventObject541 */542 ,'click':{543 fn: function(event){544 console.log('Grid listener fired (click), arguments:',arguments);545 }546 ,scope:this547 }548 549 /**550 * close : ( Ext.Panel p )551 * Fires after the Panel is closed. Note that Panels do not directly support being closed, but some Panel subclasses do (like Ext.Window).552 * Listeners will be called with the following arguments:553 * p : Ext.Panel554 * The Panel that has been closed.555 */556 ,'close':{557 fn: function(panel){558 console.log('Grid listener fired (close), arguments:',arguments);559 }560 ,scope:this561 }562 563 /**564 * collapse : ( Ext.Panel p )565 * Fires after the Panel has been collapsed.566 * Listeners will be called with the following arguments:567 * p : Ext.Panel568 * the Panel that has been collapsed.569 */570 ,'collapse':{571 fn: function(panel){572 console.log('Grid listener fired (collapse), arguments:',arguments);573 }574 ,scope:this575 }576 577 /**578 * columnmove : ( Number oldIndex, Number newIndex )579 * Fires when the user moves a column580 * Listeners will be called with the following arguments:581 * oldIndex : Number582 * newIndex : Number583 */584 ,'columnmove':{585 fn: function(oldIndex, newIndex){586 console.log('Grid listener fired (columnmove), arguments:',arguments);587 }588 ,scope:this589 }590 591 /**592 * columnresize : ( Number columnIndex, Number newSize )593 * Fires when the user resizes a column594 * Listeners will be called with the following arguments:595 * columnIndex : Number596 * newSize : Number597 */598 ,'columnresize':{599 fn: function(columnIndex, newSize){600 console.log('Grid listener fired (columnresize), arguments:',arguments);601 }602 ,scope:this603 }604 605 /**606 * contextmenu : ( Ext.EventObject e )607 * The raw contextmenu event for the entire grid.608 * Listeners will be called with the following arguments:609 * e : Ext.EventObject610 */611 ,'contextmenu':{612 fn: function(event){613 console.log('Grid listener fired (contextmenu), arguments:',arguments);614 }615 ,scope:this616 }617 618 /**619 * dblclick : ( Ext.EventObject e )620 * The raw dblclick event for the entire grid.621 * Listeners will be called with the following arguments:622 * e : Ext.EventObject623 */624 ,'dblclick':{625 fn: function(event){626 console.log('Grid listener fired (dblclick), arguments:',arguments);627 }628 ,scope:this629 }630 631 /**632 * deactivate : ( Ext.Panel p )633 * Fires after the Panel has been visually deactivated. Note that Panels do not directly support being deactivated, but some Panel subclasses do (like Ext.Window). Panels which are child Components of a TabPanel fire the activate and deactivate events under the control of the TabPanel.634 * Listeners will be called with the following arguments:635 * p : Ext.Panel636 * The Panel that has been deactivated.637 */638 ,'deactivate':{639 fn: function(panel){640 console.log('Grid listener fired (deactivate), arguments:',arguments);641 }642 ,scope:this643 }644 645 /**646 * destroy : ( Ext.Component this )647 * Fires after the component is destroyed.648 * Listeners will be called with the following arguments:649 * this : Ext.Component650 */651 ,'destroy':{652 fn: function(component){653 console.log('Grid listener fired (destroy), arguments:',arguments);654 }655 ,scope:this656 }657 658 /**659 * disable : ( Ext.Component this )660 * Fires after the component is disabled.661 * Listeners will be called with the following arguments:662 * this : Ext.Component663 */664 ,'disable':{665 fn: function(component){666 console.log('Grid listener fired (disable), arguments:',arguments);667 }668 ,scope:this669 }670 671 /**672 * enable : ( Ext.Component this )673 * Fires after the component is enabled.674 * Listeners will be called with the following arguments:675 * this : Ext.Component676 */677 ,'enable':{678 fn: function(component){679 console.log('Grid listener fired (enable), arguments:',arguments);680 }681 ,scope:this682 }683 684 /**685 * expand : ( Ext.Panel p )686 * Fires after the Panel has been expanded.687 * Listeners will be called with the following arguments:688 * p : Ext.Panel689 * The Panel that has been expanded.690 */691 ,'expand':{692 fn: function(panel){693 console.log('Grid listener fired (expand), arguments:',arguments);694 }695 ,scope:this696 }697 698 /**699 * headerclick : ( Grid this, Number columnIndex, Ext.EventObject e )700 * Fires when a header is clicked701 * Listeners will be called with the following arguments:702 * this : Grid703 * columnIndex : Number704 * e : Ext.EventObject705 */706 ,'headerclick':{707 fn: function(grid, columnIndex, event){708 console.log('Grid listener fired (headerclick), arguments:',arguments);709 }710 ,scope:this711 }712 713 /**714 * headercontextmenu : ( Grid this, Number columnIndex, Ext.EventObject e )715 * Fires when a header is right clicked716 * Listeners will be called with the following arguments:717 * this : Grid718 * columnIndex : Number719 * e : Ext.EventObject720 */721 ,'headercontextmenu':{722 fn: function(grid, columnIndex, event){723 console.log('Grid listener fired (headercontextmenu), arguments:',arguments);724 }725 ,scope:this726 }727 728 /**729 * headerdblclick : ( Grid this, Number columnIndex, Ext.EventObject e )730 * Fires when a header cell is double clicked731 * Listeners will be called with the following arguments:732 * this : Grid733 * columnIndex : Number734 * e : Ext.EventObject735 */736 ,'headerdblclick':{737 fn: function(grid, columnIndex, event){738 console.log('Grid listener fired (headerdblclick), arguments:',arguments);739 }740 ,scope:this741 }742 743 /**744 * headermousedown : ( Grid this, Number columnIndex, Ext.EventObject e )745 * Fires before a header is clicked746 * Listeners will be called with the following arguments:747 * this : Grid748 * columnIndex : Number749 * e : Ext.EventObject750 */751 ,'headermousedown':{752 fn: function(grid, columnIndex, event){753 console.log('Grid listener fired (headermousedown), arguments:',arguments);754 }755 ,scope:this756 }757 758 /**759 * hide : ( Ext.Component this )760 * Fires after the component is hidden.761 * Listeners will be called with the following arguments:762 * this : Ext.Component763 */764 ,'hide':{765 fn: function(component){766 console.log('Grid listener fired (hide), arguments:',arguments);767 }768 ,scope:this769 }770 771 /**772 * keydown : ( Ext.EventObject e )773 * The raw keydown event for the entire grid.774 * Listeners will be called with the following arguments:775 * e : Ext.EventObject776 */777 ,'keydown':{778 fn: function(event){779 console.log('Grid listener fired (keydown), arguments:',arguments);780 }781 ,scope:this782 }783 784 /**785 * keypress : ( Ext.EventObject e )786 * The raw keypress event for the entire grid.787 * Listeners will be called with the following arguments:788 * e : Ext.EventObject789 */790 ,'keypress':{791 fn: function(event){792 console.log('Grid listener fired (keypress), arguments:',arguments);793 }794 ,scope:this795 }796 797 /**798 * mousedown : ( Ext.EventObject e )799 * The raw mousedown event for the entire grid.800 * Listeners will be called with the following arguments:801 * e : Ext.EventObject802 */803 ,'mousedown':{804 fn: function(event){805 //console.log('Grid listener fired (mousedown), arguments:',arguments);806 }807 ,scope:this808 }809 810 /**811 * mouseout : ( Ext.EventObject e )812 * The raw mouseout event for the entire grid.813 * Listeners will be called with the following arguments:814 * e : Ext.EventObject815 */816 ,'mouseout':{817 fn: function(event){818 //console.log('Grid listener fired (mouseout), arguments:',arguments);819 }820 ,scope:this821 }822 823 /**824 * mouseover : ( Ext.EventObject e )825 * The raw mouseover event for the entire grid.826 * Listeners will be called with the following arguments:827 * e : Ext.EventObject828 */829 ,'mouseover':{830 fn: function(event){831 console.log('Grid listener fired (mouseover), arguments:',arguments);832 }833 ,scope:this834 }835 836 /**837 * mouseup : ( Ext.EventObject e )838 * The raw mouseup event for the entire grid.839 * Listeners will be called with the following arguments:840 * e : Ext.EventObject841 */842 ,'mouseup':{843 fn: function(event){844 //console.log('Grid listener fired (mouseup), arguments:',arguments);845 }846 ,scope:this847 }848 849 /**850 * move : ( Ext.Component this, Number x, Number y )851 * Fires after the component is moved.852 * Listeners will be called with the following arguments:853 * this : Ext.Component854 * x : Number855 * The new x position856 * y : Number857 * The new y position858 */859 ,'move':{860 fn: function(component, x, y){861 console.log('Grid listener fired (move), arguments:',arguments);862 }863 ,scope:this864 }865 866 /**867 * remove : ( Ext.Container this, Ext.Component component )868 * Fires after any Ext.Component is removed from the container.869 * Listeners will be called with the following arguments:870 * this : Ext.Container871 * component : Ext.Component872 * The component that was removed873 */874 ,'remove':{875 fn: function(container, component){876 console.log('Grid listener fired (remove), arguments:',arguments);877 }878 ,scope:this879 }880 881 /**882 * render : ( Ext.Component this )883 * Fires after the component is rendered.884 * Listeners will be called with the following arguments:885 * this : Ext.Component886 */887 ,'render':{888 fn: function(component){889 console.log('06 - Grid listener fired (render), arguments:',arguments);890 }891 ,scope:this892 }893 894 /**895 * resize : ( Ext.Component this, Number adjWidth, Number adjHeight, Number rawWidth, Number rawHeight )896 * Fires after the component is resized.897 * Listeners will be called with the following arguments:898 * this : Ext.Component899 * adjWidth : Number900 * The box-adjusted width that was set901 * adjHeight : Number902 * The box-adjusted height that was set903 * rawWidth : Number904 * The width that was originally specified905 * rawHeight : Number906 * The height that was originally specified907 */908 ,'resize':{909 fn: function(component, adjWidth, adjHeight, rawWidth, rawHeight){910 console.log('09 - Grid listener fired (resize), arguments:',arguments);911 }912 ,scope:this913 }914 915 /**916 * rowclick : ( Grid this, Number rowIndex, Ext.EventObject e )917 * Fires when a row is clicked918 * Listeners will be called with the following arguments:919 * this : Grid920 * rowIndex : Number921 * e : Ext.EventObject922 */923 ,'rowclick':{924 fn: function(grid, rowIndex, event){925 console.log('Grid listener fired (rowclick), arguments:',arguments);926 }927 ,scope:this928 }929 930 /**931 * rowcontextmenu : ( Grid this, Number rowIndex, Ext.EventObject e )932 * Fires when a row is right clicked933 * Listeners will be called with the following arguments:934 * this : Grid935 * rowIndex : Number936 * e : Ext.EventObject937 */938 ,'rowcontextmenu':{939 fn: function(grid, rowIndex, event){940 console.log('Grid listener fired (rowcontextmenu), arguments:',arguments);941 }942 ,scope:this943 }944 945 /**946 * rowdblclick : ( Grid this, Number rowIndex, Ext.EventObject e )947 * Fires when a row is double clicked948 * Listeners will be called with the following arguments:949 * this : Grid950 * rowIndex : Number951 * e : Ext.EventObject952 */953 ,'rowdblclick':{954 fn: function(grid, rowIndex, event){955 console.log('Grid listener fired (rowdblclick), arguments:',arguments);956 }957 ,scope:this958 }959 960 /**961 * rowmousedown : ( Grid this, Number rowIndex, Ext.EventObject e )962 * Fires before a row is clicked963 * Listeners will be called with the following arguments:964 * this : Grid965 * rowIndex : Number966 * e : Ext.EventObject967 */968 ,'rowmousedown':{969 fn: function(grid, rowIndex, event){970 console.log('Grid listener fired (rowmousedown), arguments:',arguments);971 }972 ,scope:this973 }974 975 /**976 * show : ( Ext.Component this )977 * Fires after the component is shown.978 * Listeners will be called with the following arguments:979 * this : Ext.Component980 */981 ,'show':{982 fn: function(component){983 console.log('Grid listener fired (show), arguments:',arguments);984 }985 ,scope:this986 }987 988 /**989 * sortchange : ( Grid this, Object sortInfo )990 * Fires when the grid's store sort changes991 * Listeners will be called with the following arguments:992 * this : Grid993 * sortInfo : Object994 * An object with the keys field and direction995 */996 ,'sortchange':{997 fn: function(grid, sortInfo){998 console.log('05 - Grid listener fired (sortchange), arguments:',arguments);999 }1000 ,scope:this1001 }1002 1003 /**1004 * staterestore : ( Ext.Component this, Object state )1005 * Fires after the state of the component is restored.1006 * Listeners will be called with the following arguments:1007 * this : Ext.Component1008 * state : Object1009 * The hash of state values1010 */1011 ,'staterestore':{1012 fn: function(component, state){1013 console.log('Grid listener fired (staterestore), arguments:',arguments);1014 }1015 ,scope:this1016 }1017 1018 /**1019 * statesave : ( Ext.Component this, Object state )1020 * Fires after the state of the component is saved to the configured state provider.1021 * Listeners will be called with the following arguments:1022 * this : Ext.Component1023 * state : Object1024 * The hash of state values1025 */1026 ,'statesave':{1027 fn: function(component, state){1028 console.log('Grid listener fired (statesave), arguments:',arguments);1029 }1030 ,scope:this1031 }1032 1033 /**1034 * titlechange : ( Ext.Panel p, String The )1035 * Fires after the Panel title has been set or changed.1036 * Listeners will be called with the following arguments:1037 * p : Ext.Panel1038 * the Panel which has had its title changed.1039 * The : String1040 * new title.1041 */1042 ,'titlechange':{1043 fn: function(panel, title){1044 console.log('07 - Grid listener fired (titlechange), arguments:',arguments);1045 }1046 ,scope:this1047 }1048 1049 /**1050 * validateedit : ( Object e )1051 * Fires after a cell is edited, but before the value is set in the record. Return false to cancel the change. The edit event object has the following properties1052 * grid - This grid1053 * record - The record being edited1054 * field - The field name being edited1055 * value - The value being set1056 * originalValue - The original value for the field, before the edit.1057 * row - The grid row index1058 * column - The grid column index1059 * cancel - Set this to true to cancel the edit or return false from your handler.1060 * Listeners will be called with the following arguments:1061 * e : Object1062 * An edit event (see above for descriptio1063 */1064 ,'validateedit':{1065 fn: function(e){1066 console.log('Grid listener fired (validateedit), arguments:',arguments);1067 }1068 ,scope:this1069 }1070 1071 });//end grid.addListener1072 1073 /**1074 * Proxy Listeners1075 * These listeners are not required but may be handy if you're1076 * trying to debug your code or see how the process of loading1077 * the store works.1078 * I tried adding these as part of the constructor they would1079 * not fire, but they do appear to work when I add them outside of1080 * the constructor.1081 */1082 JobProxy.on({1083 'beforeload':{1084 fn: function(store, options){1085 console.log('02 - Proxy listener fired (beforeload), arguments:',arguments);1086 }1087 ,scope:this1088 }1089 ,'load':{1090 fn: function(store, options){1091 console.log('Proxy listener fired (load), arguments:',arguments);1092 }1093 ,scope:this1094 }1095 ,'loadexception':{1096 fn: function(store, options){1097 console.log('Proxy listener fired (loadexception), arguments:',arguments);1098 }1099 ,scope:this1100 }1101 });1102 1103 /**1104 * Ajax request listeners1105 */1106 Ext.Ajax.on({1107 //Fires before a network request is made to retrieve a data object:1108 'beforerequest':{1109 fn: function(connection, options){1110 console.log('03 - Ajax listener fired (beforerequest), arguments(connection, options):',arguments);1111 }1112 ,scope:this1113 }1114 //Fires if the request was successfully completed:1115 ,'requestcomplete':{1116 fn: function(connection, response, options){1117 console.log('10 - Ajax listener fired (requestcomplete), arguments(connection, response, options):',arguments);1118 }1119 ,scope:this1120 }1121 //Fires if an error HTTP status was returned from the server. See HTTP Status Code1122 //Definitions for details of HTTP status codes:1123 ,'requestexception':{1124 fn: function(connection, response, options){1125 console.log('Ajax listener fired (requestexception), arguments:(connection, response, options)',arguments);1126 }1127 ,scope:this1128 }1129 });1130 1131 /**1132 * Adding listeners outside the constructor1133 */1134 JobsDataStore.on({1135 'load':{1136 fn: function(store, records, options){1137 console.log('01 - Data Store listener fired (load), arguments:',arguments);1138 console.log(' this:',this);1139 }1140 ,scope:this1141 }1142 ,'loadexception':{1143 fn: function(httpProxy, dataObject, args, exception){1144 console.log('** - Data Store listener fired (loadexception), arguments:',arguments);1145 }1146 ,scope:this1147 }1148 1149 //add remaining events for education:1150 ,'add':{1151 fn: function(store, records, index){1152 console.log('Data Store listener fired (add), arguments:',arguments);1153 }1154 ,scope:this1155 }1156 ,'beforeload':{1157 fn: function(store, options){1158 console.log('Data Store listener fired fired (beforeload), arguments:',arguments);1159 }1160 ,scope:this1161 }1162 ,'clear':{1163 fn: function(store){1164 console.log('Data Store listener fired fired (clear), arguments:',arguments);1165 }1166 ,scope:this1167 }1168 ,'datachanged':{1169 fn: function(store){1170 console.log('11 - Data Store listener fired fired (datachanged), arguments:',arguments);1171 console.log(' If you set a breakpoint here the entire grid will be rendered without data');1172 console.log(' ...about to "refresh" grid body');1173 }1174 ,scope:this1175 }1176 ,'remove':{1177 fn: function(store, record, index){1178 console.log('Data Store listener fired fired (remove), arguments:',arguments);1179 }1180 ,scope:this1181 }1182 ,'update':{1183 fn: function(store, record, operation){1184 console.log('Data Store listener fired fired (update), arguments:',arguments);1185 }1186 ,scope:this1187 }1188 });1189 }1190 1191 148 JobListingWindow = new Ext.Window({ 1192 149 id: 'JobListingWindow', … … 1199 156 items: JobListingEditorGrid 1200 157 }); 1201 158 } 159 //JobProxy.on('beforeload', function(p, params) { 160 // params.c = "GINA Cluster"; 161 // }); 1202 162 //debug(); 1203 //JobListingEditorGrid.store.url='jobstore.php?c=GINA Cluster'; 1204 JobsDataStore.load(); 1205 JobListingWindow.show(); 1206 1207 }); 163 //JobsDataStore.load(); 164 //JobListingWindow.show(); -
trunk/web2/addons/job_monarch/templates/header.tpl
r532 r536 13 13 14 14 <script type="text/javascript" src="./js/jobgrid.js"></script> 15 <script type="text/javascript"> 16 Ext.onReady( function(){ 17 initJobGrid(); 18 JobProxy.on('beforeload', function(p, params) { 19 params.c = "{cluster}"; 20 }); 21 JobsDataStore.load(); 22 JobListingWindow.show(); 23 }); 24 </script> 15 25 16 26 </HEAD>
Note: See TracChangeset
for help on using the changeset viewer.