/// Type.registerNamespace('Contensis.Web.UI'); Contensis.Web.UI.NewsSearch = function(element) { Contensis.Web.UI.NewsSearch.initializeBase(this, [element]); } Contensis.Web.UI.NewsSearch.prototype = { Properties: { YearDropDown: { type: Sys.UI.DomElement }, MonthDropDown: { type: Sys.UI.DomElement } }, initialize: function() { Contensis.Web.UI.NewsSearch.callBaseMethod(this, 'initialize'); if (this.get_MonthDropDown()) { this.AddHandler(this.get_YearDropDown(), "change", this.OnYearChange); if (this.get_YearDropDown().selectedIndex == 0) { this.EnableMonthDropdown(false); } } }, dispose: function() { Contensis.Web.UI.NewsSearch.callBaseMethod(this, 'dispose'); }, OnYearChange: function(e, element) { if (element.selectedIndex == 0) { this.EnableMonthDropdown(false); this.get_MonthDropDown().selectedIndex = 0 } else { this.EnableMonthDropdown(true); } }, EnableMonthDropdown: function(enable) { this.get_MonthDropDown().disabled = !enable; } } Contensis.Web.UI.NewsSearch.registerClass('Contensis.Web.UI.NewsSearch', Contensis.Web.UI.BaseAjaxControl);