diff --git a/phpgwapi/templates/idots2/css/idots2.css b/phpgwapi/templates/idots2/css/idots2.css
index a6b173bad2..4c10c44c30 100755
--- a/phpgwapi/templates/idots2/css/idots2.css
+++ b/phpgwapi/templates/idots2/css/idots2.css
@@ -158,6 +158,7 @@ a.appTitles,.appTitles
+
#divAppboxHeader
{
/*width:100%;*/
diff --git a/phpgwapi/templates/idots2/js/x-desktop/events.js b/phpgwapi/templates/idots2/js/x-desktop/events.js
index 839b039196..a6e7ec1ee3 100755
--- a/phpgwapi/templates/idots2/js/x-desktop/events.js
+++ b/phpgwapi/templates/idots2/js/x-desktop/events.js
@@ -153,7 +153,7 @@ function saveSize(idotsName) {
w = xDT.prop(idotsName, 'wWidth');
h = xDT.prop(idotsName, 'wHeight');
- url = strXmlUrl + "/write_size.php?title=" + title + "&w=" + w + "&h=" + h;
+ url = strXmlUrl + "/write_settings.php?action=write_size&title=" + title + "&w=" + w + "&h=" + h;
var found = false;
for(i = 0; i < aTitle.length; i++)
{
diff --git a/phpgwapi/templates/idots2/js/x-desktop/shortcuts.js b/phpgwapi/templates/idots2/js/x-desktop/shortcuts.js
index e4c8d5062e..ed6f479a24 100755
--- a/phpgwapi/templates/idots2/js/x-desktop/shortcuts.js
+++ b/phpgwapi/templates/idots2/js/x-desktop/shortcuts.js
@@ -307,7 +307,7 @@ function mouseUp(id,e)
y2 = findPosY(mObj);
x2 = findPosX(mObj);
mObj.onmousemove = "";
- strXmlUrl2 = strXmlUrl + "write_shortcut_setting.php?id=" + id + "&top=" + y2 + "&left=" + x2;
+ strXmlUrl2 = strXmlUrl + "/write_settings.php?action=shortcut_sets&id=" + id + "&top=" + y2 + "&left=" + x2;
createPos(mObj, x2,y2);
if (window.XMLHttpRequest)
{
diff --git a/phpgwapi/templates/idots2/js/x-desktop/x-desktop_core.js b/phpgwapi/templates/idots2/js/x-desktop/x-desktop_core.js
index 633dfab49a..0bfbaea2d4 100755
--- a/phpgwapi/templates/idots2/js/x-desktop/x-desktop_core.js
+++ b/phpgwapi/templates/idots2/js/x-desktop/x-desktop_core.js
@@ -225,8 +225,10 @@ function xDesktop(respath,sdt,maxwin,_fmain) { // resourcepath,
wHeight = ChooseSize(wHeight);
(wWidth > 0 && wWidth <= 10000) ? wWidth = wWidth : wWidth = 300;
(wHeight > 0 && wHeight <= 10000) ? wHeight = wHeight : wHeight = 200;
- _property(wName,"wWidth",wWidth); // default window width
- _property(wName,"wHeight",wHeight); // default window height
+// _property(wName,"wWidth",wWidth); //fixme this must be set in preferences // default window width
+// _property(wName,"wHeight",wHeight); //fixme this must be set in preferences // default window height
+ _property(wName,"wWidth",300); //fixme this must be set in preferences // default window width
+ _property(wName,"wHeight",200); //fixme this must be set in preferences // default window height
_property(wName,"wWidthOrg",_property(wName,"wWidth")); // save Org width Value
_property(wName,"wHeightOrg",_property(wName,"wHeight")); // save Org height Values
_cbe(wName).resizeTo(wWidth,wHeight);
@@ -238,8 +240,9 @@ function xDesktop(respath,sdt,maxwin,_fmain) { // resourcepath,
_property(wName,"zIndex",p_zIndex);
_setSkin(wName,wSkin);
_cbe(wName).zIndex(p_zIndex);
- _taskbar();
- return wName;
+ _taskbar();
+ _resizeWindow(wName,wWidth,wHeight,wPos); // workaround
+ return wName;
}
function _resizeWindow(wName,wWidth,wHeight,wPos) {
if (! xDTwin.window(wName)) return;
diff --git a/phpgwapi/templates/idots2/navbar.inc.php b/phpgwapi/templates/idots2/navbar.inc.php
index 780b2f3ee0..dc14124f06 100755
--- a/phpgwapi/templates/idots2/navbar.inc.php
+++ b/phpgwapi/templates/idots2/navbar.inc.php
@@ -323,7 +323,7 @@
else
{
- //this checks if the rootwindow exist
+ //this is the url to goto when rootwindow not exist
$var['rooturl'] = $GLOBALS['phpgw_info']['server']['webserver_url'] . '/index.php?cd=yes';
//set some shortcut vars
diff --git a/phpgwapi/templates/idots2/navbar.tpl b/phpgwapi/templates/idots2/navbar.tpl
index 0e93b814d7..2c47472dc8 100755
--- a/phpgwapi/templates/idots2/navbar.tpl
+++ b/phpgwapi/templates/idots2/navbar.tpl
@@ -30,7 +30,6 @@ function start() {
idotsW = "xD" + new Date().getUTCMilliseconds();
if(default_app != "") {
openX(default_title, default_app);
-
}
}
@@ -41,7 +40,7 @@ function start() {
-

+
@@ -51,7 +50,7 @@ function start() {
-
+
@@ -185,7 +184,7 @@ sidebox_open();
{lang_title}
-
+
diff --git a/phpgwapi/templates/idots2/write_settings.php b/phpgwapi/templates/idots2/write_settings.php
index c49bf95865..1b6e56185d 100644
--- a/phpgwapi/templates/idots2/write_settings.php
+++ b/phpgwapi/templates/idots2/write_settings.php
@@ -11,7 +11,7 @@
* Free Software Foundation; either version 2 of the License, or (at your *
* option) any later version. *
\**************************************************************************/
-
+
//todo move shortcutsetting and size also to this file
$phpgw_info = array();
@@ -21,7 +21,7 @@
'disable_Template_class' => True,
'currentapp' => 'notifywindow'
);
-
+
include('../../../header.inc.php');
header("Content-type: text/xml");
header( "Expires: Mon, 26 Jul 1997 05:00:00 GMT" );
@@ -47,7 +47,50 @@
break;
}
}
+ }
+ elseif($_GET[action]=='shortcut_sets')
+ {
+ $id = $_GET["id"];
+ $top = $_GET["top"];
+ $left = $_GET["left"];
+ echo $id." ".$top." ".$left;
+ $GLOBALS['phpgw']->preferences->read_repository();
+ if($GLOBALS['phpgw_info']['user']['preferences']['phpgwapi'])
+ {
+ foreach($GLOBALS['phpgw_info']['user']['preferences']['phpgwapi'] as $shortcut => $shortcut_data)
+ {
+ if($shortcut_data['title'] == $id)
+ {
+ $shortcut_data['top'] = $top;
+ $shortcut_data['left'] = $left;
+ $GLOBALS['phpgw']->preferences->change('phpgwapi',$shortcut,$shortcut_data);
+ $GLOBALS['phpgw']->preferences->save_repository(True);
+ }
+ }
+ }
+ }
+ elseif($_GET[action]=='write_size')
+ {
+
+ $title = $_GET["title"];
+ $width = $_GET["w"];
+ $height= $_GET["h"];
+ echo $title." ".$width." ".$height;
+ $GLOBALS['phpgw']->preferences->read_repository();
+
+ foreach($GLOBALS['phpgw_info']['user']['apps'] as $name => $data)
+ {
+ if($data['title'] == $title) {
+ $size['name'] = $name;
+ $size['width'] = $width;
+ $size['height'] = $height;
+ $GLOBALS['phpgw']->preferences->change('phpgwapi','size_'.$name,$size);
+ $GLOBALS['phpgw']->preferences->save_repository(True);
+ }
+ }
+
+
}
echo "";
-
+
?>
diff --git a/phpgwapi/templates/idots2/write_shortcut_setting.php b/phpgwapi/templates/idots2/write_shortcut_setting.php
deleted file mode 100755
index d09bb06b75..0000000000
--- a/phpgwapi/templates/idots2/write_shortcut_setting.php
+++ /dev/null
@@ -1,53 +0,0 @@
- *
-* Copyright 2005 Lingewoud BV - www.lingewoud.com *
-* -------------------------------------------- *
-* This program is free software; you can redistribute it and/or modify it *
-* under the terms of the GNU General Public License as published by the *
-* Free Software Foundation; either version 2 of the License, or (at your *
-* option) any later version. *
-\**************************************************************************/
-
-
-
-$phpgw_info = array();
-$GLOBALS['phpgw_info']['flags'] = array(
- 'noheader' => True,
- 'nonavbar' => True,
- 'disable_Template_class' => True,
- 'currentapp' => 'notifywindow'
-);
-include('../../../header.inc.php');
-header("Content-type: text/xml");
-header( "Expires: Mon, 26 Jul 1997 05:00:00 GMT" );
-header( "Last-Modified: " . gmdate( "D, d M Y H:i:s" ) . "GMT" );
-header( "Cache-Control: no-cache, must-revalidate" );
-header( "Pragma: no-cache" );
-echo '';
- echo "\r\n\r\n";
-
-
- $id = $_GET["id"];
- $top = $_GET["top"];
- $left = $_GET["left"];
- echo $id." ".$top." ".$left;
- $GLOBALS['phpgw']->preferences->read_repository();
- if($GLOBALS['phpgw_info']['user']['preferences']['phpgwapi'])
- {
- foreach($GLOBALS['phpgw_info']['user']['preferences']['phpgwapi'] as $shortcut => $shortcut_data)
- {
- if($shortcut_data['title'] == $id)
- {
- $shortcut_data['top'] = $top;
- $shortcut_data['left'] = $left;
- $GLOBALS['phpgw']->preferences->change('phpgwapi',$shortcut,$shortcut_data);
- $GLOBALS['phpgw']->preferences->save_repository(True);
- }
- }
- }
- echo "";
-?>
diff --git a/phpgwapi/templates/idots2/write_size.php b/phpgwapi/templates/idots2/write_size.php
deleted file mode 100755
index 13482bad11..0000000000
--- a/phpgwapi/templates/idots2/write_size.php
+++ /dev/null
@@ -1,50 +0,0 @@
- *
-* -------------------------------------------- *
-* This program is free software; you can redistribute it and/or modify it *
-* under the terms of the GNU General Public License as published by the *
-* Free Software Foundation; either version 2 of the License, or (at your *
-* option) any later version. *
-\**************************************************************************/
-
-
-
- $phpgw_info = array();
- $GLOBALS['phpgw_info']['flags'] = array(
- 'noheader' => True,
- 'nonavbar' => True,
- 'disable_Template_class' => True,
- 'currentapp' => 'notifywindow'
- );
- include('../../../header.inc.php');
- header("Content-type: text/xml");
- header( "Expires: Mon, 26 Jul 1997 05:00:00 GMT" );
- header( "Last-Modified: " . gmdate( "D, d M Y H:i:s" ) . "GMT" );
- header( "Cache-Control: no-cache, must-revalidate" );
- header( "Pragma: no-cache" );
- echo '';
- echo "\r\n\r\n";
-
- $title = $_GET["title"];
- $width = $_GET["w"];
- $height= $_GET["h"];
- echo $title." ".$width." ".$height;
- $GLOBALS['phpgw']->preferences->read_repository();
-
- foreach($GLOBALS['phpgw_info']['user']['apps'] as $name => $data)
- {
- if($data['title'] == $title) {
- $size['name'] = $name;
- $size['width'] = $width;
- $size['height'] = $height;
- $GLOBALS['phpgw']->preferences->change('phpgwapi','size_'.$name,$size);
- $GLOBALS['phpgw']->preferences->save_repository(True);
- }
- }
- echo "";
-
-?>