LP: improve IDs for steps in impress view #3427

pull/3429/head
Angel Fernando Quiroz Campos 5 years ago
parent 8305136a0f
commit 31542b9bc0
  1. 3
      main/lp/lp_impress.php

@ -69,8 +69,9 @@ if ($is_allowed_to_edit) {
$html = '';
$step = 1;
foreach ($list as $toc) {
$stepId = "$step-".api_replace_dangerous_char($toc['title']);
$x = 1000 * $step;
$html .= '<div id="step-'.$step.'" class="step slide" data-x="'.$x.'" data-y="-1500" >';
$html .= '<div id="'.strtolower($stepId).'" title="'.$toc['title'].'" class="step slide" data-x="'.$x.'" data-y="-1500" >';
$html .= '<div class="impress-content">';
$src = $lp->get_link('http', $toc['id']);
if ($toc['type'] !== 'dir') {

Loading…
Cancel
Save