File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ public function setActiveItem($index) {
50
50
51
51
private function getItemToInsert ($ item ) {
52
52
if ($ item instanceof HtmlInput || $ item instanceof HtmlImg || $ item instanceof HtmlIcon || $ item instanceof HtmlButton || ($ item instanceof HtmlDropdown && $ this ->propertyContains ("class " , "vertical " )===false )) {
53
- $ itemO =new HtmlMenuItem ("item- " . $ this ->identifier , $ item );
53
+ $ itemO =new HtmlMenuItem ("item- " . $ this ->identifier . " - " . \sizeof ( $ this -> content ) , $ item );
54
54
$ item =$ itemO ;
55
55
}
56
56
return $ item ;
@@ -134,7 +134,7 @@ public function addDropdownAsItem($value, $items=NULL) {
134
134
* @see \Ajax\common\html\html5\HtmlCollection::createItem()
135
135
*/
136
136
protected function createItem ($ value ) {
137
- $ itemO =new HtmlMenuItem ($ this ->identifier ."item " . \sizeof ($ this ->content ),"" );
137
+ $ itemO =new HtmlMenuItem ($ this ->identifier ."- item- " . \sizeof ($ this ->content ),"" );
138
138
$ itemO ->setTagName ("a " );
139
139
$ itemO ->setContent ($ value );
140
140
return $ itemO ;
You can’t perform that action at this time.
0 commit comments