Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisala committed May 10, 2023
1 parent edfdb5d commit b067438
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion grails-app/conf/application.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ abn.abnUrl= "https://abr.business.gov.au/json/AbnDetails.aspx?abn="

esp.activities.admin = 'ESP Annual Report Submission'
reports.filterableActivityTypes = ['RLP Output Report', 'Wildlife Recovery Progress Report - WRR']

reports.initialScrollPositionDelay = 1000
risks.scheduleCheckingPeriod = 7
grails.mail.poolSize = 1

Expand Down
7 changes: 5 additions & 2 deletions grails-app/views/activity/activityReport.gsp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
prepopUrlPrefix:"${grailsApplication.config.getProperty('grails.serverURL')}",
useGoogleBaseMap: ${grails.util.Environment.current == grails.util.Environment.PRODUCTION},
unlockActivityUrl: "${createLink(controller:'activity', action:'ajaxUnlock')}/<fc:currentUserId/>",
projectTargetsAndScoresUrl: "${createLink(controller:'project', action:'targetsAndScoresForActivity', id:activity.projectId, params:[activityId:activity.activityId])}"
projectTargetsAndScoresUrl: "${createLink(controller:'project', action:'targetsAndScoresForActivity', id:activity.projectId, params:[activityId:activity.activityId])}",
initialScrollPositionDelay: "${grailsApplication.config.getProperty('reports.initialScrollPositionDelay')} ?: '1000'"
},
here = document.location.href;
</script>
Expand Down Expand Up @@ -278,7 +279,9 @@
var $validationContainer = $('#validation-container');
$validationContainer.validationEngine('attach', {scroll: true});
navigator.initialiseScrollPosition($validationContainer, activity.progress);
setTimeout(function() {
navigator.initialiseScrollPosition($validationContainer, activity.progress);
}, fcConfig.initialScrollPositionDelay);
$('.imageList a[target="_photo"]').attr('rel', 'gallery').fancybox({
type: 'image',
Expand Down

0 comments on commit b067438

Please sign in to comment.