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
45aac81b
Commit
45aac81b
authored
11 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Doc: More comments
parent
33d55faf
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/core/js/lib_head.js
+19
-10
19 additions, 10 deletions
htdocs/core/js/lib_head.js
htdocs/core/tpl/ajaxrow.tpl.php
+3
-3
3 additions, 3 deletions
htdocs/core/tpl/ajaxrow.tpl.php
with
22 additions
and
13 deletions
htdocs/core/js/lib_head.js
+
19
−
10
View file @
45aac81b
// Copyright (C) 2005-201
0
Laurent Destailleur <eldy@users.sourceforge.net>
// Copyright (C) 2005-201
3
Laurent Destailleur <eldy@users.sourceforge.net>
// Copyright (C) 2005-2012 Regis Houssin <regis.houssin@capnetworks.com>
//
// This program is free software; you can redistribute it and/or modify
...
...
@@ -290,8 +290,10 @@ function loadXMLDoc(url,readyStateFunction,async)
return
req
;
}
// To hide/show select Boxes with IE6 (and only IE6 because IE6 has a bug and
// not put popup completely on the front)
/* To hide/show select Boxes with IE6 (and only IE6 because IE6 has a bug and
* not put popup completely on the front)
* Used only bu popup calendar
*/
function
hideSelectBoxes
()
{
var
brsVersion
=
parseInt
(
window
.
navigator
.
appVersion
.
charAt
(
0
),
10
);
if
(
brsVersion
<=
6
&&
window
.
navigator
.
userAgent
.
indexOf
(
"
MSIE 6
"
)
>
-
1
)
...
...
@@ -304,6 +306,10 @@ function hideSelectBoxes() {
}
}
}
/* To hide/show select Boxes with IE6 (and only IE6 because IE6 has a bug and
* not put popup completely on the front)
* Used only bu popup calendar
*/
function
displaySelectBoxes
()
{
var
brsVersion
=
parseInt
(
window
.
navigator
.
appVersion
.
charAt
(
0
),
10
);
if
(
brsVersion
<=
6
&&
window
.
navigator
.
userAgent
.
indexOf
(
"
MSIE 6
"
)
>
-
1
)
...
...
@@ -354,9 +360,7 @@ function formatDate(date,format)
c
=
format
.
charAt
(
i
);
// Recupere char du format
substr
=
""
;
j
=
i
;
while
((
format
.
charAt
(
j
)
==
c
)
&&
(
j
<
format
.
length
))
// Recupere char
// successif
// identiques
while
((
format
.
charAt
(
j
)
==
c
)
&&
(
j
<
format
.
length
))
// Recupere char successif identiques
{
substr
+=
format
.
charAt
(
j
++
);
}
...
...
@@ -623,8 +627,9 @@ function hideMessage(fieldId,message) {
if
(
textbox
.
value
==
message
)
textbox
.
value
=
''
;
}
/*
*
*
TODO Used by admin page only ?
*/
function
setConstant
(
url
,
code
,
input
,
entity
)
{
$
.
get
(
url
,
{
...
...
@@ -679,7 +684,7 @@ function setConstant(url, code, input, entity) {
}
/*
*
*
TODO Used by admin page only ?
*/
function
delConstant
(
url
,
code
,
input
,
entity
)
{
$
.
get
(
url
,
{
...
...
@@ -733,7 +738,7 @@ function delConstant(url, code, input, entity) {
}
/*
*
*
TODO Used by admin page only ?
*/
function
confirmConstantAction
(
action
,
url
,
code
,
input
,
box
,
entity
,
yesButton
,
noButton
)
{
var
boxConfirm
=
box
;
...
...
@@ -784,7 +789,9 @@ function confirmConstantAction(action, url, code, input, box, entity, yesButton,
/*
* =================================================================
* This is to allow to transform all select box into ajax autocomplete box
* with just one line: $(function() { $( "#idofmylist" ).combobox(); });
* with just one line:
* $(function() { $( "#idofmylist" ).combobox(); });
* Do not use it on large combo boxes
* =================================================================
*/
(
function
(
$
)
{
...
...
@@ -894,6 +901,8 @@ function confirmConstantAction(action, url, code, input, box, entity, yesButton,
/*
* Timer for delayed keyup function
*
* TODO Who use this ?
*/
(
function
(
$
){
$
.
widget
(
"
ui.onDelayedKeyup
"
,
{
...
...
This diff is collapsed.
Click to expand it.
htdocs/core/tpl/ajaxrow.tpl.php
+
3
−
3
View file @
45aac81b
...
...
@@ -17,11 +17,11 @@
*
* Javascript code to activate drag and drop on lines
* You can use this if you want to be abale to drag and drop rows of a table.
* You must add id="tablelines" ont table level tag and have count($object->lines) or count($taskarray) > 0
* You must add id="tablelines" ont table level tag and have count($object->lines) or count($taskarray) > 0
*/
?>
<!-- BEGIN PHP TEMPLATE
FOR JQUERY
-->
<!-- BEGIN PHP TEMPLATE
AJAXROW.TPL.PHP
-->
<?php
$id
=
$object
->
id
;
$fk_element
=
$object
->
fk_element
;
...
...
@@ -84,4 +84,4 @@ $(document).ready(function(){
});
</script>
<?php
}
?>
<!-- END PHP TEMPLATE -->
\ No newline at end of file
<!-- END PHP TEMPLATE AJAXROW.TPL.PHP -->
\ No newline at end of file
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