/*
Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
if(!dojo._hasResource["acf.games.GameListGrid"]){dojo._hasResource["acf.games.GameListGrid"]=true;dojo.provide("acf.games.GameListGrid");dojo.require("dijit.form.Button");dojo.require("kfc.base._GridBase");dojo.declare("acf.games.GameListGrid",[kfc.base._GridBase],{templateString:dojo.cache("acf.games","templates/GameListGrid.html","
\n
\n
\n
\n \n Load Game\n
\n \n
\n"),widgetsInTemplate:true,constructor:function(){this.xDomain=true;this.callbackName="acf_callback";},_getGridStructure:function(){var _1=[{name:" ",field:"",formatter:function(){return " ";},editable:false,width:"1em"},{name:"Style",field:"P_STYLE",width:"6em"},{name:"Category",field:"P_CATEGORY",width:"12em"},{name:"Year",field:"P_YEAR",width:"4em"},{name:"Event",field:"P_EVENT",width:"20em"},{name:"Red",field:"P_BLACK_PLAYER",width:"12em"},{name:"White",field:"P_WHITE_PLAYER",width:"12em"},{name:"Result",field:"P_RESULT_TEXT",width:"8em"}];return _1;},_loadGame:function(){var s=this.f_grid.selection.getSelected();if(!s){alert("No Game Selected");return;}else{this.loadGame(s);}},loadGame:function(i){},postCreate:function(){this.inherited(arguments);dojo.connect(this.f_grid,"onDblClick",this,"_loadGame");}});}