/** 
 * controller for History
 */

function HistoryController() {
	this.model=null;
	this.historyView = new HistoryView();
}

/** 
* Initialize
*/
HistoryController.prototype.init = function(model) {
	this.model = model;
	this.model.init();
	TSWIDGET.EVENTS.subscribeEx('evtDropDownRequest', this.onDropDownRequest, this, true);
	this.historyView.init();
}


/** 
* Handle history load submit 
*/
HistoryController.prototype.onDropDownRequest = function(args, obj) {
	this.model.fetch();
}