Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Cédric Le Ninivin
slapos.core
Commits
7a3fb3f7
Commit
7a3fb3f7
authored
Jun 27, 2012
by
Romain Courteaud
🐸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Separate jqm config in another file.
Only for readability.
parent
9bbb189a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
8 deletions
+14
-8
vifib/index.html
vifib/index.html
+1
-0
vifib/static/js/core.js
vifib/static/js/core.js
+0
-8
vifib/static/js/jqm-config.js
vifib/static/js/jqm-config.js
+13
-0
No files found.
vifib/index.html
View file @
7a3fb3f7
...
...
@@ -330,6 +330,7 @@
<script
type=
"text/javascript"
src=
"static/js/jquery.slapos.js"
></script>
<script
type=
"text/javascript"
src=
"static/js/jquery.urljs.js"
></script>
<script
type=
"text/javascript"
src=
"static/js/fake.js"
></script>
<script
type=
"text/javascript"
src=
"static/js/jqm-config.js"
></script>
<script
type=
"text/javascript"
src=
"static/js/core.js"
></script>
<script
src=
"http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js"
></script>
</head>
...
...
vifib/static/js/core.js
View file @
7a3fb3f7
...
...
@@ -676,14 +676,6 @@
};
}(
jQuery
));
$
(
document
).
bind
(
"
mobileinit
"
,
function
(){
// let's handle ourself the hashchange event
$
.
mobile
.
hashListeningEnabled
=
false
;
$
.
mobile
.
pushStateEnabled
=
false
;
$
.
mobile
.
ajaxEnabled
=
false
;
$
.
mobile
.
linkBindingEnabled
=
false
;
$
.
mobile
.
defaultPageTransition
=
'
none
'
;
});
$
(
document
).
bind
(
'
pagecreate
'
,
function
()
{
$
(
'
body
'
).
vifib
();
});
...
...
vifib/static/js/jqm-config.js
0 → 100644
View file @
7a3fb3f7
$
(
document
).
bind
(
"
mobileinit
"
,
function
()
{
$
.
mobile
.
ajaxEnabled
=
false
;
$
.
mobile
.
linkBindingEnabled
=
false
;
$
.
mobile
.
hashListeningEnabled
=
false
;
$
.
mobile
.
pushStateEnabled
=
false
;
// Disable transition
// $.mobile.defaultPageTransition = 'none';
// Remove page from DOM when it's being replaced
$
(
'
div[data-role="page"]
'
).
live
(
'
pagehide
'
,
function
(
event
,
ui
)
{
$
(
event
.
currentTarget
).
remove
();
});
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment