| 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 | |