function toggle(triggerEl) {
        if (triggerEl) {
          this.return_focus = triggerEl;
        }

        if (this.is_visible) {
          this.hide('toggle');
        } else {
          this.show();
        }
      }
// Public method to toggle modal visibility
Public method to toggle modal visibility
Public method to toggle modal visibility
function toggle(triggerEl) {
        if (triggerEl) {
          this.return_focus = triggerEl;
        }
        if (this.is_visible) {
          this.hide('toggle');
        } else {
          this.show();
        }
      }
function toggle ( triggerEl ) { if ( triggerEl ) { this . return_focus = triggerEl ; } if ( this . is_visible ) { this . hide ( 'toggle' ) ; } else { this . show ( ) ; } }
Public method to toggle modal visibility
Public method to toggle modal visibility