fix PR change boostrap toolbar actions CT#7539

1.10.x
aragonc 10 years ago
parent 2b848293fd
commit 8146bdaafb
  1. 9
      main/inc/lib/display.lib.php

@ -2104,15 +2104,16 @@ class Display
return self::url("$icon $text", $url, $attributes);
}
public static function toolbarAction($id, $content = array(), $col = 2){
public static function toolbarAction($id, $content = array(), $col = 2)
{
$columns = 12/$col;
$html = '';
$html .= '<div id="' . $id . '" class="actions">';
$html .= '<div class="row">';
if ($col > 4){
if ($col > 4) {
$html = '<div class="alert alert-warning" role="alert">Not exceeding four columns</div>';
}else{
for($i = 0; $i < $col; $i++){
} else {
for ( $i = 0; $i < $col; $i++ ) {
$html .= '<div class="col-md-' . $columns . '">';
if ( $col == 2 && $i == 1 ) {
$html .= '<div class="pull-right">';

Loading…
Cancel
Save