diff --git a/Site/Pages/v5/Financial/FileExpenseClaim.aspx b/Site/Pages/v5/Financial/FileExpenseClaim.aspx index b93c463d..ec2379ff 100644 --- a/Site/Pages/v5/Financial/FileExpenseClaim.aspx +++ b/Site/Pages/v5/Financial/FileExpenseClaim.aspx @@ -193,7 +193,20 @@ lensShape: "round", lensSize: 200 }); - console.log(instance); + + if (instance.group.length > 1) { + if (instance.currIndex > 0) { + $('a.data-arrow-previous').show(); + } else { + $('a.data-arrow-previous').hide(); + } + + if (instance.currIndex < instance.group.length - 1) { + $('a.data-arrow-next').show(); + } else { + $('a.data-arrow-next').hide(); + } + } }, afterLoad: function(instance, current) { @@ -201,9 +214,7 @@ /* TODO: MAKE A RIGHT-TO-LEFT VERSION OF THIS */ if ( instance.group.length > 1 && current.$content ) { - console.log(instance); - //console.log(current); - current.$content.append('→←'); + current.$content.append('→←'); } },