dist/jBox.all.js
function (el)
    {
      // Extract the href or the onclick event if no submit event is passed
      if (!this.options.confirm) {
        var submit = el.attr('onclick') ? el.attr('onclick') : (el.attr('href') ? (el.attr('target') ? 'window.open("' + el.attr('href') + '", "' + el.attr('target') + '");'  : 'window.location.href = "' + el.attr('href') + '";') : '');
        el.prop('onclick', null).data('jBox-Confirm-submit', submit);
      }
    }
function (el)
    {
      // Extract the href or the onclick event if no submit event is passed
      if (!this.options.confirm) {
        var submit = el.attr('onclick') ? el.attr('onclick') : (el.attr('href') ? (el.attr('target') ? 'window.open("' + el.attr('href') + '", "' + el.attr('target') + '");'  : 'window.location.href = "' + el.attr('href') + '";') : '');
        el.prop('onclick', null).data('jBox-Confirm-submit', submit);
      }
    }
function ( el ) { // Extract the href or the onclick event if no submit event is passed if ( ! this . options . confirm ) { var submit = el . attr ( 'onclick' ) ? el . attr ( 'onclick' ) : ( el . attr ( 'href' ) ? ( el . attr ( 'target' ) ? 'window.open("' + el . attr ( 'href' ) + '", "' + el . attr ( 'target' ) + '");' : 'window.location.href = "' + el . attr ( 'href' ) + '";' ) : '' ) ; el . prop ( 'onclick' , null ) . data ( 'jBox-Confirm-submit' , submit ) ; } }
Triggered when jBox is attached to the element
Triggered when jBox is attached to the element