MCPcopy Create free account
hub / github.com/TruthHun/BookStack / Modal

Function Modal

static/bootstrap/js/bootstrap.js:932–950  ·  view source on GitHub ↗
(element, options)

Source from the content-addressed store, hash-verified

930 // ======================
931
932 var Modal = function (element, options) {
933 this.options = options
934 this.$body = $(document.body)
935 this.$element = $(element)
936 this.$dialog = this.$element.find('.modal-dialog')
937 this.$backdrop = null
938 this.isShown = null
939 this.originalBodyPad = null
940 this.scrollbarWidth = 0
941 this.ignoreBackdropClick = false
942
943 if (this.options.remote) {
944 this.$element
945 .find('.modal-content')
946 .load(this.options.remote, $.proxy(function () {
947 this.$element.trigger('loaded.bs.modal')
948 }, this))
949 }
950 }
951
952 Modal.VERSION = '3.3.7'
953

Callers

nothing calls this directly

Calls 1

$Function · 0.50

Tested by

no test coverage detected