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
667f12b7
Commit
667f12b7
authored
Apr 18, 2014
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app: enable rendering on backward transition from a deeplink
parent
3271b9d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
js/erp5_loader.js
js/erp5_loader.js
+13
-4
No files found.
js/erp5_loader.js
View file @
667f12b7
...
...
@@ -5183,16 +5183,25 @@
* @param {object} data Data passed along with this (JQM) event
*/
app
.
parsePage
=
function
(
e
,
data
)
{
var
page
,
base
,
config
,
raw_url
,
handle
,
clean_url
,
parsed_url
,
first
;
var
page
,
base
,
config
,
raw_url
,
handle
,
clean_url
,
parsed_url
,
first
,
skipper
,
base_page
;
if
(
data
)
{
// update page title on backwards transition to the first page (still
// is in DOM, so no new page created, so no title update...)
// TODO: not bulletproof i18n handling... we expect i18n to be defined
// TODO: blocker is not nice
if
(
typeof
data
.
toPage
===
"
object
"
)
{
base_page
=
data
.
toPage
[
0
];
if
(
$
.
mobile
.
firstPage
[
0
].
getAttribute
(
"
data-url
"
)
===
data
.
toPage
[
0
]
.
getAttribute
(
"
data-url
"
))
{
base_page
.
getAttribute
(
"
data-url
"
))
{
app
.
setPageTitle
(
"
global_dict.home
"
);
// NOTE: only once!
if
(
base_page
.
getAttribute
(
"
data-set
"
)
===
null
)
{
skipper
=
true
;
}
base_page
.
setAttribute
(
"
data-set
"
,
"
true
"
);
}
}
...
...
@@ -5220,8 +5229,8 @@
first
=
$
.
mobile
.
firstPage
[
0
].
getAttribute
(
"
data-url
"
)
===
config
.
data_url
;
if
(
first
||
(
page
&&
base
)
||
raw_url
===
$
.
mobile
.
getDocumentUrl
()
||
data
.
options
.
role
===
"
popup
"
)
{
if
(
(
first
||
(
page
&&
base
)
||
raw_url
===
$
.
mobile
.
getDocumentUrl
()
||
data
.
options
.
role
===
"
popup
"
)
&&
!
skipper
)
{
// stop us, JQM can go
return
RSVP
.
resolve
(
undefined
);
}
...
...
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