File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 308
308
}
309
309
}
310
310
311
- echo '<tr class=" ' .$ questionsGroupClass .$ breakClass .'"> ' ;
311
+ // Highlight the question that was just updated and scrool to it
312
+ if ($ row ['question_id ' ]==$ my_question_id_survey ) {
313
+ echo '<tr class=" ' .$ questionsGroupClass .$ breakClass .'" style="background-color:#A9DFBF;" > ' ;
314
+ echo '<a name="tocupdatelink" id="tocupdatelink" ></a> ' ;
315
+ echo '<script> ' ;
316
+ echo '$(document).ready(function() { ' ;
317
+ echo "var element_to_scroll_to = document.getElementById('tocupdatelink'); " ;
318
+ echo 'element_to_scroll_to.scrollIntoView(); ' ;
319
+ echo '}); ' ;
320
+ echo '</script> ' ;
321
+ } else {
322
+ echo '<tr class=" ' .$ questionsGroupClass .$ breakClass .'"> ' ;
323
+ }
312
324
echo ' <td> ' .$ question_counter .'</td> ' ;
313
325
echo ' <td> ' ;
314
326
You can’t perform that action at this time.
0 commit comments