ENUM/SET editor fix for IE

This commit is contained in:
lorilee
2010-07-30 15:17:27 -07:00
parent 8214c32340
commit fb0aa49817
2 changed files with 14 additions and 9 deletions

View File

@@ -1781,15 +1781,17 @@ $(document).ready(function() {
// Center the popup
var windowWidth = document.documentElement.clientWidth;
var windowHeight = document.documentElement.clientHeight;
var popupWidth = $("#enum_editor").width();
var popupHeight = $("#enum_editor").height();
var top = windowHeight/2 - popupHeight/2;
var left = windowWidth/2 - popupWidth/2;
$("#enum_editor").css({"position":"absolute", "top": top, "left": left});
var popupWidth = windowWidth/2;
var popupHeight = windowHeight*0.8;
var popupOffsetTop = windowHeight/2 - popupHeight/2;
var popupOffsetLeft = windowWidth/2 - popupWidth/2;
$("#enum_editor").css({"position":"absolute", "top": popupOffsetTop, "left": popupOffsetLeft, "width": popupWidth, "height": popupHeight});
// Make it appear
$("#popup_background").css({"opacity":"0.7"});
$("#popup_background").fadeIn("fast");
$("#enum_editor").fadeIn("fast");
// Get the values
var values = $(this).parent().prev("input").attr("value").split(",");
$.each(values, function(index, val) {