diff --git a/htdocs/comm/propal/list.php b/htdocs/comm/propal/list.php
index d19cfbba32c..0dc0770f528 100644
--- a/htdocs/comm/propal/list.php
+++ b/htdocs/comm/propal/list.php
@@ -1855,7 +1855,7 @@ while ($i < $imaxinloop) {
print '';
}
} else {
- print '
';
+ print '
';
// Action column
if (getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')) {
diff --git a/htdocs/commande/list.php b/htdocs/commande/list.php
index 6f685abbebe..fe8238a27aa 100644
--- a/htdocs/commande/list.php
+++ b/htdocs/commande/list.php
@@ -2419,7 +2419,7 @@ while ($i < $imaxinloop) {
} else {
// Show line of result
$j = 0;
- print '
';
+ print '
';
// Action column
if (getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')) {
diff --git a/htdocs/compta/facture/list.php b/htdocs/compta/facture/list.php
index 8eff70c8ba6..6413de08d75 100644
--- a/htdocs/compta/facture/list.php
+++ b/htdocs/compta/facture/list.php
@@ -2327,7 +2327,7 @@ if ($num > 0) {
} else {
// Show line of result
$j = 0;
- print '
0){
+ // Add all lines to selection betwin last selected line
+ if($(this).index() === lastLastChanged.index()) {
+ return null;
+ }
+
+ if($(this).index() < lastLastChanged.index()) {
+ $(this).nextUntil(lastLastChanged, ".row-with-select" ).find('.checkforselect').prop('checked', nextCheckStatus).trigger('change');
+ }else{
+ lastLastChanged.nextUntil($(this), ".row-with-select" ).find('.checkforselect').prop('checked', nextCheckStatus).trigger('change');
+ }
+
+
+ lastLastChanged.find('.checkforselect').prop('checked', nextCheckStatus).trigger('change');
+ checkBox.prop('checked', nextCheckStatus).trigger('change');
+
+ setLastClickedRowStatus($(this), 1);
+ }
+ }
+ });
+});
// End of lib_head.js.php
diff --git a/htdocs/theme/eldy/global.inc.php b/htdocs/theme/eldy/global.inc.php
index e31905ab1b1..c74ad39961f 100644
--- a/htdocs/theme/eldy/global.inc.php
+++ b/htdocs/theme/eldy/global.inc.php
@@ -9190,6 +9190,16 @@ print getDolGlobalString('THEME_CUSTOM_CSS');
?>
+/* Remove text selection - Intuitive table selection */
+.row-with-select[data-is-last-changed] * {
+ -webkit-touch-callout: none; /* iOS Safari */
+ -webkit-user-select: none; /* Safari */
+ -khtml-user-select: none; /* Konqueror HTML */
+ -moz-user-select: none; /* Old versions of Firefox */
+ -ms-user-select: none; /* Internet Explorer/Edge */
+ user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
+}
+
div.extra_inline_chkbxlst, div.extra_inline_checkbox {
min-width:150px;
}
diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php
index 4f3274c0a05..ce71528704e 100644
--- a/htdocs/theme/md/style.css.php
+++ b/htdocs/theme/md/style.css.php
@@ -8998,9 +8998,18 @@ if (is_object($db)) {
}
::-webkit-scrollbar-thumb {
background: #ddd;
-}
-
+}
+/* Remove text selection - Intuitive table selection */
+.row-with-select[data-is-last-changed] * {
+ -webkit-touch-callout: none; /* iOS Safari */
+ -webkit-user-select: none; /* Safari */
+ -khtml-user-select: none; /* Konqueror HTML */
+ -moz-user-select: none; /* Old versions of Firefox */
+ -ms-user-select: none; /* Internet Explorer/Edge */
+ user-select: none; /* Non-prefixed version, currently
+ supported by Chrome, Edge, Opera and Firefox */
+}
/* Must be at end */
div.flot-text .flot-tick-label .tickLabel, .fa-color-unset {