Actions
Anomalie #919
closedfix bug on PDF export with projects
Start date:
02/07/2020
Due date:
% Done:
100%
Estimated time:
2.00 h
Resolution:
Description
Actions
Added by Simon almost 5 years ago. Updated over 4 years ago.
100%
Description
bug to to an error of bracket in `DisplayListProjectByLevelsWithProgression()` function.
following javascript block was sent anyway when display.php was included :
<script>
$(document).ready(function() {
// $('.progressbar[title]' ).tooltip({ effect: 'slide', opacity: 0.8});
function animate_progress(object) {
var w = $(object).width() / $(object).parent().width() * 100 + '%'; // get width in percentage
$( object ).css('visibility', 'visible').css('width', '0%'); // set element visible and width to 0
$( object ).animate({width : w}, getRandomInt(2000,4000));
}
/**
* Waypoints animation - Method A
* animate when scrolled to object position
*/
var waypoints = $('div.project-progression div.pprogressbar > div').waypoint({
handler: function(direction) {
animate_progress($(this.element));
this.destroy();
},
offset: 'bottom-in-view'
});
function animate_progress(object) {
var w = $(object).width() / $(object).parent().width() * 100 + '%'; // get width in percentage
$( object ).css('visibility', 'visible').css('width', '0%'); // set element visible and width to 0
$( object ).animate({width : w}, getRandomInt(2000,4000));
}
});
</script>
Applied in changeset linea21|r3511.