Commits

Christoffer Niska committed de6e5f0

added warning type to BootProgress

  • Participants
  • Parent commits 3e31569

Comments (0)

Files changed (1)

File widgets/BootProgress.php

 	const TYPE_DEFAULT = '';
 	const TYPE_INFO = 'info';
 	const TYPE_SUCCESS = 'success';
+	const TYPE_WARNING = 'warning';
 	const TYPE_DANGER = 'danger';
 
 	/**
 	{
 		$classes = array('progress');
 
-		$validTypes = array(self::TYPE_DEFAULT, self::TYPE_INFO, self::TYPE_SUCCESS, self::TYPE_DANGER);
+		$validTypes = array(self::TYPE_DEFAULT, self::TYPE_INFO, self::TYPE_SUCCESS, self::TYPE_WARNING, self::TYPE_DANGER);
 		if ($this->type !== self::TYPE_DEFAULT && in_array($this->type, $validTypes))
 			$classes[] = 'progress-'.$this->type;