english/libraries/joomla/html/html/behavior.php
/**
	 * Add unobtrusive javascript support for a calendar control.
	 *
	 * @return  void
	 * @since   11.1
	 */
Add unobtrusive javascript support for a calendar control.
Add unobtrusive javascript support for a calendar control .
public static function calendar()
	{
		static $loaded = false;
		if ($loaded) {
			return;
		}
		$document		= JFactory::getDocument();
		$tag			= JFactory::getLanguage()->getTag();
		$uncompressed	= JFactory::getConfig()->get('debug') ? '-uncompressed' : '';
		JHtml::_('stylesheet', 'system/calendar-jos.css', array(' title' => JText::_('JLIB_HTML_BEHAVIOR_GREEN') ,' media' => 'all'), true);
		JHtml::_('script', $tag.'/calendar'.$uncompressed.'.js', false, true);
		JHtml::_('script', $tag.'/calendar-setup'.$uncompressed.'.js', false, true);
		$translation = JHtmlBehavior::_calendartranslation();
		if ($translation) {
			$document->addScriptDeclaration($translation);
		}
		$loaded = true;
	}
public static function calendar ( ) { static $ loaded = false ; if ( $ loaded ) { return ; } $ document = JFactory :: getDocument ( ) ; $ tag = JFactory :: getLanguage ( ) -> getTag ( ) ; $ uncompressed = JFactory :: getConfig ( ) -> get ( 'debug' ) ? '-uncompressed' : '' ; JHtml :: _ ( 'stylesheet' , 'system/calendar-jos.css' , array ( ' title' => JText :: _ ( 'JLIB_HTML_BEHAVIOR_GREEN' ) , ' media' => 'all' ) , true ) ; JHtml :: _ ( 'script' , $ tag . '/calendar' . $ uncompressed . '.js' , false , true ) ; JHtml :: _ ( 'script' , $ tag . '/calendar-setup' . $ uncompressed . '.js' , false , true ) ; $ translation = JHtmlBehavior :: _calendartranslation ( ) ; if ( $ translation ) { $ document -> addScriptDeclaration ( $ translation ) ; } $ loaded = true ; }
Add unobtrusive javascript support for a calendar control.
Add unobtrusive javascript support for a calendar control .
// Only load once //Add uncompressed versions when debug is enabled