Changed the timing of when the ASOP footer is linkify'ed.

master
Pacman Ghost 3 years ago
parent 295a6a45e8
commit 25bd56739b
  1. 14
      asl_rulebook2/webapp/static/NavPane.js

@ -183,13 +183,15 @@ gMainApp.component( "nav-pane-asop", {
created() {
// get the ASOP footer
getURL( gGetASOPFooterUrl ).then( (resp) => { //eslint-disable-line no-undef
this.footer = resp ;
this.$nextTick( () => {
linkifyAutoRuleids( $( this.$refs.footer ) ) ;
gEventBus.on( "app-loaded", () => {
getURL( gGetASOPFooterUrl ).then( (resp) => { //eslint-disable-line no-undef
this.footer = resp ;
this.$nextTick( () => {
linkifyAutoRuleids( $( this.$refs.footer ) ) ;
} ) ;
} ).catch( (errorMsg) => {
console.log( "Couldn't get the ASOP footer: " + errorMsg ) ;
} ) ;
} ).catch( (errorMsg) => {
console.log( "Couldn't get the ASOP footer: " + errorMsg ) ;
} ) ;
// open the appropriate chapter pane when the user clicks on an ASOP section search result

Loading…
Cancel
Save