function GradebookGradeSummary($content, blockout, modalTitle) {
  var self = this;
  this.$content = $content;

  this.blockout = blockout || false;

  this.modalTitle = modalTitle || false;

  this.studentId = this.$content.find("[data-studentid]").data("studentid");

  this.setupCategoryToggles();
  this.setupPopovers();

  this.$modal = this.$content.closest(".wicket-modal");

  if (this.$modal.length > 0 && this.$modal.is(":visible")) {
    this.setupWicketModal();
  } else {
    setTimeout($.proxy(function() {
      this.$modal = this.$content.closest(".wicket-modal");
      if (this.$modal.length > 0 && this.$modal.is(":visible")) {
        this.setupWicketModal();
      } else {
        this.setupStudentView();
      }
    }, this));
  }

  $("body").on("DOMNodeInserted", ".wicket-top-modal", function() {
    self.positionModalAtTop($(this));
  });
}
/**************************************************************************************
 * A GradebookGradeSummary to encapsulate all the grade summary content behaviours 
 */
A GradebookGradeSummary to encapsulate all the grade summary content behaviours
A GradebookGradeSummary to encapsulate all the grade summary content behaviours
function GradebookGradeSummary($content, blockout, modalTitle) {
  var self = this;
  this.$content = $content;
  this.blockout = blockout || false;
  this.modalTitle = modalTitle || false;
  this.studentId = this.$content.find("[data-studentid]").data("studentid");
  this.setupCategoryToggles();
  this.setupPopovers();
  this.$modal = this.$content.closest(".wicket-modal");
  if (this.$modal.length > 0 && this.$modal.is(":visible")) {
    this.setupWicketModal();
  } else {
    setTimeout($.proxy(function() {
      this.$modal = this.$content.closest(".wicket-modal");
      if (this.$modal.length > 0 && this.$modal.is(":visible")) {
        this.setupWicketModal();
      } else {
        this.setupStudentView();
      }
    }, this));
  }
  $("body").on("DOMNodeInserted", ".wicket-top-modal", function() {
    self.positionModalAtTop($(this));
  });
}
function GradebookGradeSummary ( $content , blockout , modalTitle ) { var self = this ; this . $content = $content ; this . blockout = blockout || false ; this . modalTitle = modalTitle || false ; this . studentId = this . $content . find ( "[data-studentid]" ) . data ( "studentid" ) ; this . setupCategoryToggles ( ) ; this . setupPopovers ( ) ; this . $modal = this . $content . closest ( ".wicket-modal" ) ; if ( this . $modal . length > 0 && this . $modal . is ( ":visible" ) ) { this . setupWicketModal ( ) ; } else { setTimeout ( $ . proxy ( function ( ) { this . $modal = this . $content . closest ( ".wicket-modal" ) ; if ( this . $modal . length > 0 && this . $modal . is ( ":visible" ) ) { this . setupWicketModal ( ) ; } else { this . setupStudentView ( ) ; } } , this ) ) ; } $ ( "body" ) . on ( "DOMNodeInserted" , ".wicket-top-modal" , function ( ) { self . positionModalAtTop ( $ ( this ) ) ; } ) ; }
A GradebookGradeSummary to encapsulate all the grade summary content behaviours
A GradebookGradeSummary to encapsulate all the grade summary content behaviours