src/ztfy/myams/resources/js/ext/bootstrap-modal.js
changeset 206 02a40997d8cb
parent 174 8d81f90f1d08
equal deleted inserted replaced
205:27ed26ca8623 206:02a40997d8cb
   137 			if (value) {
   137 			if (value) {
   138 				var body = this.$element.find(this.options.overflow);
   138 				var body = this.$element.find(this.options.overflow);
   139 				if (body.css('overflow') === undefined) {
   139 				if (body.css('overflow') === undefined) {
   140 					body.style('overflow', 'auto', 'important');
   140 					body.style('overflow', 'auto', 'important');
   141 				}
   141 				}
   142 				body.style(prop, (typeof(value) == 'function' ? value() : value) + 'px', 'important');
   142 				body.style(prop, (typeof(value) === 'function' ? value() : value) + 'px', 'important');
   143 			}
   143 			}
   144 
   144 
   145 			var modalOverflow = $(window).height() - 10 < this.$element.height();
   145 			var modalOverflow = $(window).height() - 10 < this.$element.height();
   146 
   146 
   147 //			if (modalOverflow || this.options.modalOverflow) {
   147 //			if (modalOverflow || this.options.modalOverflow) {