Soft'N'Design Software
/
projects
/
trivabble.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0875268
)
avoid comfirmation if all rack are empty
author
Laurent Mazet
<mazet@softndesign.org>
Sat, 22 Aug 2026 16:57:39 +0000
(18:57 +0200)
committer
Laurent Mazet
<mazet@softndesign.org>
Sat, 22 Aug 2026 16:57:39 +0000
(18:57 +0200)
public/trivabble.js
patch
|
blob
|
blame
|
history
diff --git
a/public/trivabble.js
b/public/trivabble.js
index 5fe3b9a1276e7bb4994a8f6d02f08f4a07ce8b02..bc376a043c33620add06238961295211e69458c1 100644
(file)
--- a/
public/trivabble.js
+++ b/
public/trivabble.js
@@
-2194,12
+2194,16
@@
}
function askShowBag() {
- myConfirm(
- _("Do you really want to see bag content? It's kind of cheating!"),
- function () {
- sendCmds([{cmd: "showBag"}]);
- }
- );
+ if (nbTilesInRacks) {
+ myConfirm(
+ _("Do you really want to see bag content? It's kind of cheating!"),
+ function () {
+ sendCmds([{cmd: "showBag"}]);
+ }
+ );
+ } else {
+ sendCmds([{cmd: "showBag"}]);
+ }
}
function triggerFlashLight(cell) {