diff --git a/htdocs/core/boxes/modules_boxes.php b/htdocs/core/boxes/modules_boxes.php
index 4f59d3912a7..025cfba71a5 100644
--- a/htdocs/core/boxes/modules_boxes.php
+++ b/htdocs/core/boxes/modules_boxes.php
@@ -231,8 +231,8 @@ class ModeleBoxes // Can't be abtract as it is instantiated to build "empty"
$nblines=count($contents);
$out.= "\n\n";
- //$out.= '
'; // Does not work on home page. TODO Try to fix this.
- $out.= '
'."\n";
+
+ $out.= '
'."\n";
if (! empty($head['text']) || ! empty($head['sublink']) || ! empty($head['subpicto']) || $nblines)
{
@@ -361,7 +361,7 @@ class ModeleBoxes // Can't be abtract as it is instantiated to build "empty"
if (empty($head['text']) && empty($head['sublink']) && empty($head['subpicto']) && ! $nblines) $out.= "
\n";
$out.= "
\n";
- //$out.= "
\n";
+
$out.= "\n\n";
if (! empty($conf->global->MAIN_ACTIVATE_FILECACHE)) {
dol_filecache($cachedir, $filename, $out);
diff --git a/htdocs/core/class/html.formother.class.php b/htdocs/core/class/html.formother.class.php
index 3c27a8f05fd..492565cebc7 100644
--- a/htdocs/core/class/html.formother.class.php
+++ b/htdocs/core/class/html.formother.class.php
@@ -1042,8 +1042,8 @@ class FormOther
// To update list of activated boxes
function updateBoxOrder(closing) {
- var left_list = cleanSerialize(jQuery("#left").sortable("serialize"));
- var right_list = cleanSerialize(jQuery("#right").sortable("serialize"));
+ var left_list = cleanSerialize(jQuery("#boxhalfleft").sortable("serialize"));
+ var right_list = cleanSerialize(jQuery("#boxhalfright").sortable("serialize"));
var boxorder = \'A:\' + left_list + \'-B:\' + right_list;
if (boxorder==\'A:A-B:B\' && closing == 1) // There is no more boxes on screen, and we are after a delete of a box so we must hide title
{
@@ -1067,8 +1067,8 @@ class FormOther
jQuery("#boxcombo").change(function() {
var boxid=jQuery("#boxcombo").val();
if (boxid > 0) {
- var left_list = cleanSerialize(jQuery("#left").sortable("serialize"));
- var right_list = cleanSerialize(jQuery("#right").sortable("serialize"));
+ var left_list = cleanSerialize(jQuery("#boxhalfleft").sortable("serialize"));
+ var right_list = cleanSerialize(jQuery("#boxhalfright").sortable("serialize"));
var boxorder = \'A:\' + left_list + \'-B:\' + right_list;
jQuery.ajax({
url: \''.DOL_URL_ROOT.'/core/ajax/box.php?boxorder=\'+boxorder+\'&boxid=\'+boxid+\'&zone='.$areacode.'&userid='.$user->id.'\',
@@ -1080,13 +1080,12 @@ class FormOther
if (! count($arrayboxtoactivatelabel)) $selectboxlist.='jQuery("#boxcombo").hide();';
$selectboxlist.='
- jQuery("#left, #right").sortable({
- /* placeholder: \'ui-state-highlight\', */
+ jQuery("#boxhalfleft, #boxhalfright").sortable({
handle: \'.boxhandle\',
revert: \'invalid\',
- items: \'.box\',
- containment: \'.fiche\',
- connectWith: \'.connectedSortable\',
+ items: \'.boxdraggable\',
+ containment: \'document\',
+ connectWith: \'#boxhalfleft, #boxhalfright\',
stop: function(event, ui) {
updateBoxOrder(1); /* 1 to avoid message after a move */
}
@@ -1118,7 +1117,6 @@ class FormOther
$emptybox=new ModeleBoxes($db);
$boxlista.="\n\n";
- $boxlista.='
'."\n";
// Define $box_max_lines
$box_max_lines=5;
@@ -1147,11 +1145,9 @@ class FormOther
$emptybox->info_box_contents=array();
$boxlista.= $emptybox->outputBox(array(),array());
}
- $boxlista.= "
\n";
$boxlista.= "\n";
$boxlistb.= "\n\n";
- $boxlistb.= '
'."\n";
$ii=0;
foreach ($boxactivated as $key => $box)
@@ -1176,7 +1172,7 @@ class FormOther
$emptybox->info_box_contents=array();
$boxlistb.= $emptybox->outputBox(array(),array());
}
- $boxlistb.= "
\n";
+
$boxlistb.= "\n";
}
diff --git a/htdocs/index.php b/htdocs/index.php
index 000d113cad0..280cb48af86 100644
--- a/htdocs/index.php
+++ b/htdocs/index.php
@@ -124,8 +124,6 @@ if (empty($user->societe_id))
$boxstat.='';
$boxstat.='
';
- $var=true;
-
$object=new stdClass();
$parameters=array();
$action='';
@@ -510,7 +508,6 @@ if ($reshook == 0) {
// Calculate total nb of late
$totallate=$totaltodo=0;
-$var=true;
//Remove any invalid response
//load_board can return an integer if failed or WorkboardResponse if OK
@@ -617,25 +614,27 @@ print '';
* Show boxes
*/
-$boxlist.=' ';
-$boxlist.=''."\n";
+$boxlist.='';
-$boxlist.=' ';
+$boxlist.=' ';
-//$boxlist.=$boxinfo;
$boxlist.=$boxstat;
$boxlist.=$resultboxes['boxlista'];
-$boxlist.= ' ';
+$boxlist.= ' ';
+
+$boxlist.= ' ';
+$boxlist.= ' ';
$boxlist.=$boxwork;
$boxlist.=$resultboxes['boxlistb'];
-$boxlist.= ' ';
+$boxlist.= ' ';
+$boxlist.= ' ';
$boxlist.= "\n";
-$boxlist.= " | ";
-$boxlist.= " ";
+$boxlist.=' ';
+
print $boxlist;
diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php
index 9d8f568bbd4..c711eb9b683 100644
--- a/htdocs/theme/eldy/style.css.php
+++ b/htdocs/theme/eldy/style.css.php
@@ -2931,6 +2931,10 @@ ul.noborder li:nth-child(even):not(.liste_titre) {
* Boxes
*/
+.box {
+ overflow-x: auto;
+ min-height: 40px;
+}
.ficheaddleft div.boxstats {
border: none;
}
diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php
index 0ba04898f4c..f6cd5909d0e 100644
--- a/htdocs/theme/md/style.css.php
+++ b/htdocs/theme/md/style.css.php
@@ -3005,6 +3005,10 @@ div .tdtop {
* Boxes
*/
+.box {
+ overflow-x: auto;
+ min-height: 40px;
+}
.ficheaddleft div.boxstats {
border: none;
}
|