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
f6cc9419
Commit
f6cc9419
authored
Dec 17, 2013
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed popup close triggering 2x back transitions
parent
5c1e4b25
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
js/erp5_loader.js
js/erp5_loader.js
+4
-8
No files found.
js/erp5_loader.js
View file @
f6cc9419
...
...
@@ -5158,10 +5158,6 @@
obj
.
portal_type
=
pass
.
type
;
// make sure to overwrite existing files, so try to fetch...
// TODO: is there no easier way to check whether to put/post
console
.
log
(
obj
)
console
.
log
(
flux
)
console
.
log
(
pass
)
promises
[
i
]
=
store
.
post
(
obj
)
.
then
(
function
(
answer
)
{
return
answer
;
...
...
@@ -5518,6 +5514,10 @@
parsed_url
=
$
.
mobile
.
path
.
parseUrl
(
clean_url
);
// overwrite :-)
// NOTE: remove initialDist, otherwise closing popups will trigger
// double backward transition.
delete
$
.
mobile
.
navigate
.
history
.
initialDst
;
// NOTE: Correctly set index as first page in JQM history
$
.
mobile
.
navigate
.
history
.
stack
[
0
].
hash
=
""
;
$
.
mobile
.
navigate
.
history
.
stack
[
0
].
url
=
clean_url
;
$
.
mobile
.
path
.
documentUrl
=
parsed_url
;
...
...
@@ -5557,15 +5557,11 @@
*/
//TODO: merge with pagebindings, so all jQuery is at one place!
app
.
setGlobalBindings
=
function
()
{
console
.
log
(
"
SETTING BINDING
"
)
$
(
document
)
.
enhanceWithin
()
// generate dynamic pages
.
on
(
"
pagebeforechange
"
,
function
(
e
,
data
)
{
console
.
log
(
"
PBC
"
)
console
.
log
(
e
)
console
.
log
(
data
)
app
.
parsePage
(
e
,
data
);
})
...
...
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