Skip to content

Commit d75a731

Browse files
committed
Fix scrut + sl bugs
1 parent 92726bb commit d75a731

File tree

8 files changed

+7
-9
lines changed

8 files changed

+7
-9
lines changed

Ajax/bootstrap/components/Modal.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function attach($identifier) {
2323
$this->js->addClass($identifier, "modal", true);
2424
$this->js->attr($identifier, "role", "dialog", true);
2525
$this->js->attr($identifier, "aria-labelledby", "myModalLabel", true);
26-
$this->js->attr($identifier, "aria-hidden", true, true);
26+
$this->js->attr($identifier, "aria-hidden", "true", true);
2727
}
2828

2929
/**

Ajax/bootstrap/html/HtmlButtontoolbar.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
* @author jc
99
* @version 1.001
1010
*/
11-
use Ajax\bootstrap\html\HtmlButtongroups;
1211

1312
class HtmlButtontoolbar extends HtmlButtongroups {
1413

Ajax/bootstrap/html/content/HtmlListgroupItem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function setDisabled() {
3737
* define the Panel style
3838
* avaible values : "list-group-item-default","list-group-item-primary","list-group-item-success","list-group-item-info","list-group-item-warning","list-group-item-danger"
3939
* @param string|int $cssStyle
40-
* @return HtmlListgroupItem default : "list-group-item-default"
40+
* @return HtmlBsDoubleElement default : "list-group-item-default"
4141
*/
4242
public function setStyle($cssStyle) {
4343
if (!JString::startsWith($cssStyle, "list-group-item"))

Ajax/semantic/html/collections/HtmlGrid.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,10 @@ public function colCount() {
197197
}
198198

199199
/**
200-
* Returns the cell (HtmlGridCol) at position rrow,$col
200+
* Returns the cell (HtmlGridCol) at position $row,$col
201201
* @param int $row
202202
* @param int $col
203-
* @return HtmlGridCol
203+
* @return HtmlGridCol|HtmlGridRow
204204
*/
205205
public function getCell($row, $col) {
206206
if ($row < 2 && $this->hasOnlyCols($this->count()))

Ajax/semantic/html/collections/form/traits/FieldsTrait.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ trait FieldsTrait {
2323
abstract public function addFields($fields=NULL,$label=NULL);
2424
abstract public function addItem($item);
2525
abstract public function getItem($index);
26+
abstract public function count();
2627

2728
protected function createItem($value){
2829
if(\is_array($value)){

Ajax/semantic/html/content/HtmlMenuItem.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@ protected function initContent($content){
1717
if(JArray::isAssociative($content)===false){
1818
$icon=@$content[0];
1919
$title=@$content[1];
20-
$desc=@$content[2];
2120
}else{
2221
$icon=@$content["icon"];
2322
$title=@$content["title"];
24-
$desc=@$content["description"];
2523
}
2624
if(isset($icon)){
2725
$this->addIcon($icon);

Ajax/semantic/html/elements/HtmlButtonGroups.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ protected function createItem($value){
2929
/**
3030
* @param array $items
3131
* @param boolean $asCombo
32-
* @return HtmlDropdown
32+
* @return HtmlDropdown|HtmlButton
3333
*/
3434
public function addDropdown($items,$asCombo=false){
3535
$dd= new HtmlDropdown("dd-".$this->identifier,null,$items);

Ajax/semantic/widgets/datatable/DataTableFieldAsTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ public function addEditButton($visibleHover=true,$editBehavior=[],$callback=null
191191

192192
/**
193193
* Adds an edit and a delete button
194-
* @param string $visibleHover
194+
* @param boolean $visibleHover
195195
* @param array $behavior default : array("preventDefault"=>true,"stopPropagation"=>true,"jsCallback"=>NULL,"attr"=>"data-ajax","params"=>"{}","method"=>"get")
196196
* @param callable $callbackEdit this function takes the following arguments : $object=>the delete button, $instance : the active instance of the object
197197
* @param callable $callbackDelete this function takes the following arguments : $object=>the delete button, $instance : the active instance of the object

0 commit comments

Comments
 (0)