patternlab/styleguide/public/styleguide/js/patternlab-viewer.js
function() {
    
    // make sure the modal viewer and other options are off just in case
    modalViewer.close();

    // note it's turned on in the viewer
    DataSaver.updateValue('modalActive', 'true');
    modalViewer.active = true;

    // add an active class to the button that matches this template
    $('#sg-t-'+modalViewer.template+' .sg-checkbox').addClass('active');

    //Add active class to modal
    $('#sg-modal-container').addClass('active');
    
    // show the modal
    modalViewer.show();
    
  }
function() {
    
    // make sure the modal viewer and other options are off just in case
    modalViewer.close();

    // note it's turned on in the viewer
    DataSaver.updateValue('modalActive', 'true');
    modalViewer.active = true;

    // add an active class to the button that matches this template
    $('#sg-t-'+modalViewer.template+' .sg-checkbox').addClass('active');

    //Add active class to modal
    $('#sg-modal-container').addClass('active');
    
    // show the modal
    modalViewer.show();
    
  }
function ( ) { // make sure the modal viewer and other options are off just in case modalViewer . close ( ) ; // note it's turned on in the viewer DataSaver . updateValue ( 'modalActive' , 'true' ) ; modalViewer . active = true ; // add an active class to the button that matches this template $ ( '#sg-t-' + modalViewer . template + ' .sg-checkbox' ) . addClass ( 'active' ) ; //Add active class to modal $ ( '#sg-modal-container' ) . addClass ( 'active' ) ; // show the modal modalViewer . show ( ) ; }
open the modal window
open the modal window