src/pyams_skin/resources/js/ext/bootstrap-modal.js
changeset 176 308f11404e60
parent 151 2c67b6c103bb
equal deleted inserted replaced
175:16c3f89f1a3a 176:308f11404e60
   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) {