Ext.define("MyApp.controller.GUI",{extend:Ext.app.Controller,refs:[{ref:"container",selector:"#container"}],onLaunch:function(){this.getContainer().setLoading(CCS.Translator.getText("Loading..."));var a=Ext.Object.fromQueryString(document.location.search);Ext.Ajax.request({url:"../../service/viewRiskDefinition.php",method:"GET",params:a,success:function(c,d){var b=Ext.JSON.decode(c.responseText);var e=b.result;this.showRiskDefinitions(e)},failure:function(b,c){var d=b.responseText;Ext.Error.raise({msg:"Failed to get risk ids",option:d,object:c});this.getContainer().setLoading(false)},scope:this})},showRiskDefinitions:function(e){var b=this.getContainer();var c="../viewRiskDefinition/viewRiskDefinition.php";var d="";for(var a in e){d+='<iframe src="'+c+document.location.search+"&risk_id="+e[a]+'" width="100%" height="100%" frameborder="0" style="border-color: white;"></iframe>'}b.update(d);b.setLoading(false);b.doLayout();setTimeout(function(){b.doLayout()},5000)}});Ext.define("MyApp.view.MyContainer",{extend:Ext.container.Container,itemId:"container",margin:0,padding:0,autoScroll:true,layout:"anchor",initComponent:function(){var a=this;a.callParent(arguments)}});