function refreshCitationsHelper() {
  if( this.mode == "LIST" ) {
    // need to reload page instead of just count
    window.location.assign( this.baseUrl + "&sakai_action=doList" );
  } else {
    // need to reload just the count
    if( document.getElementById( "messageDiv" ) ) {
      // need to have ?panel=null in the URL
      if( ! this.baseUrl.match( "panel\=null" ) ) {
        this.baseUrl += "?panel=null";
      }
    
      $( "#messageDiv" ).load( this.baseUrl + "&sakai_action=doMessageFrame&operation=refreshCount",
        function() {
          // update the citation list count using the value from the AJAX response
          $( "#citationCountDisplay" ).html( document.getElementById( "citationCount" ).value );
        }
      );
    }
  }
}
/*
 * CitationsHelperFrame method to refresh the screen.  Should only work on
 * LIST and ADD_CITATIONS modes (citationsHelperMode variable needs to be set)
 */
CitationsHelperFrame method to refresh the screen.  Should only work on
LIST and ADD_CITATIONS modes (citationsHelperMode variable needs to be set)
CitationsHelperFrame method to refresh the screen . Should only work on LIST and ADD_CITATIONS modes ( citationsHelperMode variable needs to be set )
function refreshCitationsHelper() {
  if( this.mode == "LIST" ) {
    window.location.assign( this.baseUrl + "&sakai_action=doList" );
  } else {
    if( document.getElementById( "messageDiv" ) ) {
      if( ! this.baseUrl.match( "panel\=null" ) ) {
        this.baseUrl += "?panel=null";
      }
      $( "#messageDiv" ).load( this.baseUrl + "&sakai_action=doMessageFrame&operation=refreshCount",
        function() {
          $( "#citationCountDisplay" ).html( document.getElementById( "citationCount" ).value );
        }
      );
    }
  }
}
function refreshCitationsHelper ( ) { if ( this . mode == "LIST" ) { window . location . assign ( this . baseUrl + "&sakai_action=doList" ) ; } else { if ( document . getElementById ( "messageDiv" ) ) { if ( ! this . baseUrl . match ( "panel\=null" ) ) { this . baseUrl += "?panel=null" ; } $ ( "#messageDiv" ) . load ( this . baseUrl + "&sakai_action=doMessageFrame&operation=refreshCount" , function ( ) { $ ( "#citationCountDisplay" ) . html ( document . getElementById ( "citationCount" ) . value ) ; } ) ; } } }
CitationsHelperFrame method to refresh the screen.
CitationsHelperFrame method to refresh the screen .
// need to reload page instead of just count // need to reload just the count // need to have ?panel=null in the URL // update the citation list count using the value from the AJAX response