src/sap.ui.unified/src/sap/ui/unified/CalendarTimeInterval.js
function _hideYearPicker(bSkipFocus){

		this._iMode = 0;

		var oYearPicker = this.getAggregation("yearPicker");
		oYearPicker.$().css("display", "none");

		this._hideOverlay();

		if (!bSkipFocus) {
			_renderTimesRow.call(this); // to focus date

			// restore tabindex because if date not changed in _renderTimesRow only the focused date is updated
			var oTimesRow = this.getAggregation("timesRow");
			jQuery(oTimesRow._oItemNavigation.getItemDomRefs()[oTimesRow._oItemNavigation.getFocusedIndex()]).attr("tabindex", "0");
		}

	}
function _hideYearPicker(bSkipFocus){

		this._iMode = 0;

		var oYearPicker = this.getAggregation("yearPicker");
		oYearPicker.$().css("display", "none");

		this._hideOverlay();

		if (!bSkipFocus) {
			_renderTimesRow.call(this); // to focus date

			// restore tabindex because if date not changed in _renderTimesRow only the focused date is updated
			var oTimesRow = this.getAggregation("timesRow");
			jQuery(oTimesRow._oItemNavigation.getItemDomRefs()[oTimesRow._oItemNavigation.getFocusedIndex()]).attr("tabindex", "0");
		}

	}
function _hideYearPicker ( bSkipFocus ) { this . _iMode = 0 ; var oYearPicker = this . getAggregation ( "yearPicker" ) ; oYearPicker . $ ( ) . css ( "display" , "none" ) ; this . _hideOverlay ( ) ; if ( ! bSkipFocus ) { _renderTimesRow . call ( this ) ; // to focus date // restore tabindex because if date not changed in _renderTimesRow only the focused date is updated var oTimesRow = this . getAggregation ( "timesRow" ) ; jQuery ( oTimesRow . _oItemNavigation . getItemDomRefs ( ) [ oTimesRow . _oItemNavigation . getFocusedIndex ( ) ] ) . attr ( "tabindex" , "0" ) ; } }
Hides an embedded year Picker.
This function assumes there is a "yearPicker" aggregation.
So callers must take care.
@return {void}
@private
Hides an embedded year Picker . This function assumes there is a yearPicker aggregation . So callers must take care .