/**
 * AS4ControlPortalPanel 
 * Model object represents a single control panel within the portal page
 */
 
var AS4ControlPortalPanel = Class.create(AS4PortalPanel, {
	
	/**
	 * @constructor
	 */
	initialize: function($super, title, options) {
		$super(title, options, 'control');
	},
	
	/**
	 * AJAX refresh the channel portal page
	 */
	reload: function($super)
	{
		$super();
		
		var url = "/home/panel_content";
		
		var params = {
			renderMode: "update",
			update: true, 
			type: "control"
		};
		
		AS4Shell.getInstance().ajaxUpdate(url, params, this.contentElement(), $A([this.onReload.bind(this)]), {showIndicator: false});
	}
});
