MCPcopy Create free account
hub / github.com/HangfireIO/Hangfire.Samples / Modal

Function Modal

Hangfire.WebFormsApplication/Scripts/bootstrap.js:951–970  ·  view source on GitHub ↗
(element, options)

Source from the content-addressed store, hash-verified

949 // ======================
950
951 var Modal = function (element, options) {
952 this.options = options
953 this.$body = $(document.body)
954 this.$element = $(element)
955 this.$dialog = this.$element.find('.modal-dialog')
956 this.$backdrop = null
957 this.isShown = null
958 this.originalBodyPad = null
959 this.scrollbarWidth = 0
960 this.ignoreBackdropClick = false
961 this.fixedContent = '.navbar-fixed-top, .navbar-fixed-bottom'
962
963 if (this.options.remote) {
964 this.$element
965 .find('.modal-content')
966 .load(this.options.remote, $.proxy(function () {
967 this.$element.trigger('loaded.bs.modal')
968 }, this))
969 }
970 }
971
972 Modal.VERSION = '3.4.2'
973

Callers

nothing calls this directly

Calls 1

$Function · 0.70

Tested by

no test coverage detected