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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
b6a910cf
Commit
b6a910cf
authored
11 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Fix: jmobile is crazy, we can disable it
parent
38e695b9
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/main.inc.php
+5
-5
5 additions, 5 deletions
htdocs/main.inc.php
with
5 additions
and
5 deletions
htdocs/main.inc.php
+
5
−
5
View file @
b6a910cf
...
...
@@ -1173,7 +1173,7 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs
{
// We must force not using ajax because cache of jquery does not load js of other pages.
// This also increase seriously speed onto mobile device where complex js code is very slow and memory very low.
if
(
empty
(
$conf
->
dol_use_jmobile
)
||
$conf
->
dol_use_jmobile
!=
2
)
if
(
empty
(
$conf
->
dol_use_jmobile
)
||
(
$conf
->
dol_use_jmobile
!=
2
&&
$conf
->
dol_use_jmobile
!=
3
)
)
{
print
'<script type="text/javascript">
$(document).bind("mobileinit", function(){
...
...
@@ -1188,7 +1188,7 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs
});
</script>'
;
}
print
'<script type="text/javascript" src="'
.
DOL_URL_ROOT
.
'/includes/jquery/plugins/mobile/jquery.mobile-latest.min.js"></script>'
.
"
\n
"
;
if
(
empty
(
$conf
->
dol_use_jmobile
)
||
$conf
->
dol_use_jmobile
!=
3
)
print
'<script type="text/javascript" src="'
.
DOL_URL_ROOT
.
'/includes/jquery/plugins/mobile/jquery.mobile-latest.min.js"></script>'
.
"
\n
"
;
}
}
...
...
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