diff --git a/livesupport/modules/htmlUI/var/templates/loader/index.tpl b/livesupport/modules/htmlUI/var/templates/loader/index.tpl
index 77f0374b6..54580c406 100755
--- a/livesupport/modules/htmlUI/var/templates/loader/index.tpl
+++ b/livesupport/modules/htmlUI/var/templates/loader/index.tpl
@@ -13,6 +13,6 @@
-->
-
+
diff --git a/livesupport/modules/htmlUI/var/templates/script/basics.js.tpl b/livesupport/modules/htmlUI/var/templates/script/basics.js.tpl
index b7f8a4000..8237ab6d2 100755
--- a/livesupport/modules/htmlUI/var/templates/script/basics.js.tpl
+++ b/livesupport/modules/htmlUI/var/templates/script/basics.js.tpl
@@ -49,7 +49,7 @@
Pwidth = window.innerWidth;
Pheight = window.innerHeight;
}
-
+
url = url + '&is_popup=1';
screenX = (Xpos + Pwidth/2 - width/2);
screenY = (Ypos + Pheight/2 - height/2);
@@ -61,8 +61,8 @@
function hpopup(url, name)
{
- var width = 50;
- var height = 50;
+ var width = 160;
+ var height = 120;
var screenX;
var screenY;
var Xpos;
diff --git a/livesupport/modules/htmlUI/var/ui_scratchpad.class.php b/livesupport/modules/htmlUI/var/ui_scratchpad.class.php
index 9ed1792bb..c90d6822a 100755
--- a/livesupport/modules/htmlUI/var/ui_scratchpad.class.php
+++ b/livesupport/modules/htmlUI/var/ui_scratchpad.class.php
@@ -124,6 +124,9 @@ class uiScratchPad
function reOrder($by)
{
+ if (count($this->items) == 0)
+ return FALSE;
+
foreach ($this->items as $key=>$val) {
$s[$key] = $val[$by];
}