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
26a5ac53
Commit
26a5ac53
authored
12 years ago
by
Regis Houssin
Browse files
Options
Downloads
Patches
Plain Diff
Fix: possibility to disable ajax
parent
a2fe6e31
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/core/class/html.formfile.class.php
+3
-2
3 additions, 2 deletions
htdocs/core/class/html.formfile.class.php
with
3 additions
and
2 deletions
htdocs/core/class/html.formfile.class.php
+
3
−
2
View file @
26a5ac53
...
...
@@ -59,13 +59,14 @@ class FormFile
* @param int $size Length of input file area
* @param Object $object Object to use (when attachment is done on an element)
* @param string $options Options
* @param boolean $useajax Use ajax if enabled
* @return int <0 if KO, >0 if OK
*/
function
form_attach_new_file
(
$url
,
$title
=
''
,
$addcancel
=
0
,
$sectionid
=
0
,
$perm
=
1
,
$size
=
50
,
$object
=
''
,
$options
=
''
)
function
form_attach_new_file
(
$url
,
$title
=
''
,
$addcancel
=
0
,
$sectionid
=
0
,
$perm
=
1
,
$size
=
50
,
$object
=
''
,
$options
=
''
,
$useajax
=
true
)
{
global
$conf
,
$langs
;
if
(
!
empty
(
$conf
->
global
->
MAIN_USE_JQUERY_FILEUPLOAD
))
if
(
!
empty
(
$conf
->
global
->
MAIN_USE_JQUERY_FILEUPLOAD
)
&&
$useajax
)
{
return
$this
->
_formAjaxFileUpload
(
$object
);
}
...
...
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