From 29472d0c529ab87aa53c30820d2e68d247bd6d5b Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 26 May 2004 07:22:43 +0000 Subject: [PATCH] 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) --- phpgwapi/js/picker/picker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/js/picker/picker.js b/phpgwapi/js/picker/picker.js index 2428a727d7..6c40c397cb 100644 --- a/phpgwapi/js/picker/picker.js +++ b/phpgwapi/js/picker/picker.js @@ -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(); }