diff --git a/htdocs/bookmarks/bookmarks.lib.php b/htdocs/bookmarks/bookmarks.lib.php
index 9e69eda2cd3..199c227df43 100644
--- a/htdocs/bookmarks/bookmarks.lib.php
+++ b/htdocs/bookmarks/bookmarks.lib.php
@@ -60,10 +60,9 @@ function printDropdownBookmarksList()
}
$searchForm = ''."\n";
- $searchForm .= '
';
+
// Url to list bookmark
$listbtn = '';
}
- $bookmarkList = '';
// Menu with list of bookmarks
$sql = "SELECT rowid, title, url, target FROM ".MAIN_DB_PREFIX."bookmark";
$sql .= " WHERE (fk_user = ".$user->id." OR fk_user is NULL OR fk_user = 0)";
@@ -87,59 +85,125 @@ function printDropdownBookmarksList()
$sql .= " ORDER BY position";
if ($resql = $db->query($sql))
{
- $i = 0;
- while (($conf->global->BOOKMARKS_SHOW_IN_MENU == 0 || $i < $conf->global->BOOKMARKS_SHOW_IN_MENU) && $obj = $db->fetch_object($resql))
- {
- $bookmarkList .= '
target == 1 ? ' target="_blank"' : '').' href="'.dol_escape_htmltag($obj->url).'" >';
- $bookmarkList .= dol_escape_htmltag($obj->title);
- $bookmarkList .= '';
- $i++;
+ if (empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER)) {
+ $bookmarkList = '
';
+
+ $searchForm .= '
';
+ } else {
+ $searchForm .= '';
}
}
else
{
dol_print_error($db);
}
- $bookmarkList .= '
';
- $html = '
-
-
- ';
+ $searchForm .= '';
- $html .= '
-
-
- '.$bookmarkList.'
-
- ';
+ // Generate the return string
+ if (! empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER)) {
+ $html = $searchForm;
- $html .= '
-
-
- ';
+ $html.='
+ ';
+ } else {
+ $html = '
+
+
+ ';
- if ($(this).text().search(new RegExp(filter, "i")) < 0) {
- $(this).addClass("hidden-search-result");
- } else {
- $(this).removeClass("hidden-search-result");
- count++;
- }
- });
- $("#top-bookmark-search-filter-count").text(count);
- });
- ';
+ $html .= '
+
+
+ '.$bookmarkList.'
+
+ ';
+
+ $html .= '
+
+
+ ';
+
+ $html .= '
+ ';
+ }
return $html;
}
diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php
index 8d3812d5553..400ad73fad2 100644
--- a/htdocs/main.inc.php
+++ b/htdocs/main.inc.php
@@ -1969,51 +1969,57 @@ function top_menu_bookmark()
include_once DOL_DOCUMENT_ROOT.'/bookmarks/bookmarks.lib.php';
$langs->load("bookmarks");
- $html .= '
- ';
+ if (!empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER)) {
+ $html .= '';
+ } else {
+ $html .= '
+ ';
- $html .= '
-
-
- ';
+ });
+
+ ';
+ }
}
return $html;
}
diff --git a/htdocs/theme/eldy/badges.inc.php b/htdocs/theme/eldy/badges.inc.php
index ed609ddbc87..ae02a8e7f73 100644
--- a/htdocs/theme/eldy/badges.inc.php
+++ b/htdocs/theme/eldy/badges.inc.php
@@ -118,13 +118,13 @@ a.badge-warning:focus, a.badge-warning:hover {
}
/* WARNING colorblind */
-body[class^="colorblind-"] .badge-warning {
+body[class*="colorblind-"] .badge-warning {
background-color: ;
}
-body[class^="colorblind-"] a.badge-warning.focus,body[class^="colorblind-"] a.badge-warning:focus {
+body[class*="colorblind-"] a.badge-warning.focus,body[class^="colorblind-"] a.badge-warning:focus {
box-shadow: 0 0 0 0.2rem ;
}
-body[class^="colorblind-"] a.badge-warning:focus, a.badge-warning:hover {
+body[class*="colorblind-"] a.badge-warning:focus, a.badge-warning:hover {
background-color: ;
}
diff --git a/htdocs/theme/eldy/progress.inc.php b/htdocs/theme/eldy/progress.inc.php
index 750db266dfd..6df6d3480a8 100644
--- a/htdocs/theme/eldy/progress.inc.php
+++ b/htdocs/theme/eldy/progress.inc.php
@@ -145,16 +145,21 @@ if (! defined('ISLOADEDBYSTEELSHEET')) die('Must be call by steelsheet'); ?>
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
}
-.progress-bar-green,
-.progress-bar-success {
+.progress-bar-green, .progress-bar-success {
background-color: ;
}
-.progress-striped .progress-bar-green,
-.progress-striped .progress-bar-success {
+.progress-striped .progress-bar-green, .progress-striped .progress-bar-success {
background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
}
+body[class*="colorblind-"] .progress-bar-green, body[class*="colorblind-"] .progress-bar-success {
+ background-color: ;
+}
+body[class*="colorblind-"] .progress-bar-red, body[class*="colorblind-"] .progress-bar-danger {
+ background-color: ;
+}
+
.progress-bar-aqua,
.progress-bar-info {
background-color: #00c0ef;
diff --git a/htdocs/theme/eldy/theme_vars.inc.php b/htdocs/theme/eldy/theme_vars.inc.php
index 65c51e10dfe..b0ab509dc5c 100644
--- a/htdocs/theme/eldy/theme_vars.inc.php
+++ b/htdocs/theme/eldy/theme_vars.inc.php
@@ -99,6 +99,7 @@ $badgeLight = '#f8f9fa';
$colorblind_deuteranopes_badgeSuccess = '#37de5d'; //! text color black
$colorblind_deuteranopes_badgeSuccess_textColor7 = '#000';
$colorblind_deuteranopes_badgeWarning = '#e4e411';
+$colorblind_deuteranopes_badgeDanger = $badgeDanger; // currently not tested with a color blind people so use default color
/* default color for status : After a quick check, somme status can have oposite function according to objects
* So this badges status uses default value according to theme eldy status img