Skip to content

Commit e87f8c5

Browse files
committed
Step startStep added
1 parent 9d96551 commit e87f8c5

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

Ajax/semantic/html/content/HtmlStepItem.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ public function setActive($value=true){
4646
}
4747

4848
public function setCompleted(){
49-
$this->removeIcon();
5049
$this->removePropertyValues("class", [StepStatus::COMPLETED,StepStatus::DISABLED]);
5150
return $this->setStatus(StepStatus::COMPLETED);
5251
}

Ajax/semantic/html/elements/HtmlStep.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
class HtmlStep extends HtmlSemCollection{
1313
protected $_activeStep;
14+
protected $_startStep;
1415

1516
public function __construct( $identifier,$steps=array()){
1617
parent::__construct( $identifier,"div", "ui steps");
@@ -50,8 +51,8 @@ public function setVertical(){
5051
protected function defineActiveStep(){
5152
$activestep=$this->_activeStep;
5253
$count=$this->count();
53-
if($this->isOrdered()){
54-
for($i=0;$i<$count;$i++){
54+
if(!$this->isOrdered()){
55+
for($i=$this->_startStep;$i<$count;$i++){
5556
$step=$this->content[$i];
5657
$step->removeStatus();
5758
if($i<$activestep)
@@ -95,4 +96,10 @@ public function asLink(){
9596
}
9697
return $this;
9798
}
99+
100+
public function setStartStep($_startStep) {
101+
$this->_startStep=$_startStep;
102+
return $this;
103+
}
104+
98105
}

0 commit comments

Comments
 (0)