Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
ecommerce-ui
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
ecommerce-ui
Commits
ea3e4660
Commit
ea3e4660
authored
Nov 04, 2013
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
undo changes
parent
4fbd0d7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
js/libs/jquery-mobile/jquery-mobile.js
js/libs/jquery-mobile/jquery-mobile.js
+8
-2
No files found.
js/libs/jquery-mobile/jquery-mobile.js
View file @
ea3e4660
...
@@ -4475,18 +4475,24 @@ $.widget( "mobile.page", {
...
@@ -4475,18 +4475,24 @@ $.widget( "mobile.page", {
},
},
go
:
function
(
steps
)
{
go
:
function
(
steps
)
{
console
.
log
(
"
GOOO
"
)
//if hashlistening is enabled use native history method
//if hashlistening is enabled use native history method
if
(
$
.
mobile
.
hashListeningEnabled
)
{
if
(
$
.
mobile
.
hashListeningEnabled
)
{
console
.
log
(
"
wtf
"
)
console
.
log
(
steps
)
window
.
history
.
go
(
steps
);
window
.
history
.
go
(
steps
);
}
else
{
}
else
{
console
.
log
(
"
JQM handle
"
);
//we are not listening to the hash so handle history internally
//we are not listening to the hash so handle history internally
var
activeIndex
=
$
.
mobile
.
navigate
.
history
.
activeIndex
,
var
activeIndex
=
$
.
mobile
.
navigate
.
history
.
activeIndex
,
index
=
activeIndex
+
parseInt
(
steps
,
10
),
index
=
activeIndex
+
parseInt
(
steps
,
10
),
url
=
$
.
mobile
.
navigate
.
history
.
stack
[
index
].
url
,
url
=
$
.
mobile
.
navigate
.
history
.
stack
[
index
].
url
,
direction
=
(
steps
>=
1
)?
"
forward
"
:
"
back
"
;
direction
=
(
steps
>=
1
)?
"
forward
"
:
"
back
"
;
console
.
log
(
activeIndex
)
console
.
log
(
index
)
console
.
log
(
url
)
console
.
log
(
direction
)
//update the history object
//update the history object
$
.
mobile
.
navigate
.
history
.
activeIndex
=
index
;
$
.
mobile
.
navigate
.
history
.
activeIndex
=
index
;
$
.
mobile
.
navigate
.
history
.
previousIndex
=
activeIndex
;
$
.
mobile
.
navigate
.
history
.
previousIndex
=
activeIndex
;
...
...
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