fix pr bootstrap CT#7539

1.10.x
aragonc 9 years ago
parent 479a6df2f8
commit 317eab994f
  1. 4
      main/inc/lib/agenda.lib.php
  2. 4
      main/inc/lib/display.lib.php

@ -2551,10 +2551,10 @@ class Agenda
if ($view == 'calendar') {
$actionsRigth .= $form;
$actionsRight .= $form;
}
$toolbar = Display::toolbarAction('toolbar-agenda', array( 0 => $actionsLeft, 1 => $actionsRigth), 2, false);
$toolbar = Display::toolbarAction('toolbar-agenda', array( 0 => $actionsLeft, 1 => $actionsRight), 2, false);
return $toolbar;
}

@ -2104,7 +2104,7 @@ class Display
return self::url("$icon $text", $url, $attributes);
}
public static function toolbarAction($id, $content = array(), $col = 2, $rigth = true)
public static function toolbarAction($id, $content = array(), $col = 2, $right = true)
{
$columns = 12/$col;
$html = '';
@ -2116,7 +2116,7 @@ class Display
for ( $i = 0; $i < $col; $i++ ) {
$html .= '<div class="col-md-' . $columns . '">';
if ( $col == 2 && $i == 1 ) {
if($rigth === true){
if($right === true){
$html .= '<div class="pull-right">';
$html .= $content[$i];
$html .= '</div>';

Loading…
Cancel
Save