added possebility to set the url, where the picker "lives", to enable it to load it's html-file correct (without the need to copy it everywhere)

This commit is contained in:
Ralf Becker 2004-05-26 07:22:43 +00:00
parent 892a1b369e
commit 29472d0c52

View File

@ -14,7 +14,7 @@ function TCPopup(field, palette) {
var w = 194, h = 206,
move = screen ?
',left=' + ((screen.width - w) >> 1) + ',top=' + ((screen.height - h) >> 1) : '',
o_colWindow = window.open('picker.html', null, "help=no,status=no,scrollbars=no,resizable=no" + move + ",width=" + w + ",height=" + h + ",dependent=yes", true);
o_colWindow = window.open((this.url?this.url:'')+'picker.html', null, "help=no,status=no,scrollbars=no,resizable=no" + move + ",width=" + w + ",height=" + h + ",dependent=yes", true);
o_colWindow.opener = window;
o_colWindow.focus();
}