Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
68058d0e
Commit
68058d0e
authored
11 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Add a confirm box before deleting.
parent
16857293
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/barcode/codeinit.php
+8
-3
8 additions, 3 deletions
htdocs/barcode/codeinit.php
htdocs/langs/en_US/admin.lang
+3
-1
3 additions, 1 deletion
htdocs/langs/en_US/admin.lang
with
11 additions
and
4 deletions
htdocs/barcode/codeinit.php
+
8
−
3
View file @
68058d0e
...
...
@@ -245,6 +245,13 @@ if ($conf->societe->enabled)
// For products
if
(
$conf
->
product
->
enabled
||
$conf
->
product
->
service
)
{
// Example 1 : Adding jquery code
print
'<script type="text/javascript" language="javascript">
function confirm_erase() {
return confirm("'
.
dol_escape_js
(
$langs
->
trans
(
"ConfirmEraseAllCurrentBarCode"
))
.
'");
}
</script>'
;
$nbno
=
$nbtotal
=
0
;
print_fiche_titre
(
$langs
->
trans
(
"BarcodeInitForProductsOrServices"
),
''
,
''
)
.
'<br>'
.
"
\n
"
;
...
...
@@ -296,8 +303,6 @@ if ($conf->product->enabled || $conf->product->service)
if
(
empty
(
$nbno
))
{
$disabled1
=
1
;
$titleno
=
$langs
->
trans
(
"NoRecordWithoutBarcodeDefined"
);
print
'<font class="ok">'
.
$langs
->
trans
(
"NoRecordWithoutBarcodeDefined"
)
.
'</font><br>'
;
}
print
'<br>'
;
...
...
@@ -306,7 +311,7 @@ if ($conf->product->enabled || $conf->product->service)
print
'<input class="button" type="submit" name="submitformbarcodeproductgen" id="submitformbarcodeproductgen" value="'
.
$langs
->
trans
(
"InitEmptyBarCode"
,
min
(
$maxperinit
,
$nbno
))
.
'"'
.
$moretags1
.
'>'
;
$moretags2
=
((
$nbno
==
$nbtotal
)
?
' disabled="disabled"'
:
''
);
print
' '
;
print
'<input class="button" type="submit" name="eraseallbarcode" id="eraseallbarcode" value="'
.
$langs
->
trans
(
"EraseAllCurrentBarCode"
)
.
'"'
.
$moretags2
.
'>'
;
print
'<input class="button" type="submit" name="eraseallbarcode" id="eraseallbarcode" value="'
.
$langs
->
trans
(
"EraseAllCurrentBarCode"
)
.
'"'
.
$moretags2
.
'
onClick="return confirm_erase();"
>'
;
print
'<br><br><br>'
;
}
...
...
This diff is collapsed.
Click to expand it.
htdocs/langs/en_US/admin.lang
+
3
−
1
View file @
68058d0e
...
...
@@ -380,14 +380,16 @@ DefaultLink=Default link
ValueOverwrittenByUserSetup=Warning, this value may be overwritten by user specific setup (each user can set his own clicktodial url)
ExternalModule=External module - Installed into directory %s
BarcodeInitForThirdparties=Mass barcode init for thirdparties
BarcodeInitForProductsOrServices=Mass barcode init for products or services
BarcodeInitForProductsOrServices=Mass barcode init
or reset
for products or services
CurrentlyNWithoutBarCode=Currently, you have <strong>%s</strong> records on <strong>%s</strong> %s without barcode defined.
InitEmptyBarCode=Init value for next %s empty records
EraseAllCurrentBarCode=Erase all current barcode values
ConfirmEraseAllCurrentBarCode=Are you sure you want to erase all current barcode values ?
AllBarcodeReset=All barcode values have been removed
NoBarcodeNumberingTemplateDefined=No numbering barcode template enabled into barcode module setup.
NoRecordWithoutBarcodeDefined=No record with no barcode value defined.
# Modules
Module0Name=Users & groups
Module0Desc=Users and groups management
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment