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
a0dcef93
Commit
a0dcef93
authored
Apr 23, 2014
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app: removed dismal view selection, now test for view or show default
parent
d93a00dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
17 deletions
+4
-17
js/erp5_loader.js
js/erp5_loader.js
+4
-17
No files found.
js/erp5_loader.js
View file @
a0dcef93
...
...
@@ -6721,14 +6721,13 @@
* @return {object} navigation object
**/
app
.
util
.
parseLink
=
function
(
url
)
{
var
i
,
hash
,
path
,
clean_hash
,
backup
,
decode
,
mode
,
roo
t
;
var
i
,
hash
,
path
,
clean_hash
,
decode
,
root
,
las
t
;
hash
=
$
.
mobile
.
path
.
parseUrl
(
url
.
replace
(
$
.
mobile
.
dialogHashKey
,
""
)
).
hash
.
replace
(
"
#
"
,
""
);
// decode = /^[^\/]*%2[^\/]*$/.test(hash);
decode
=
/%
[
0-9a-f
]{2}
/i
.
test
(
hash
);
backup
=
0
;
// decode (allowing URI encoded identifiers)
if
(
decode
)
{
...
...
@@ -6746,25 +6745,13 @@
}
// check for mode
path
=
clean_hash
.
split
(
"
/
"
);
// TODO: this should be generic and without a backup....
// TODO: REFACTOR!!!
for
(
i
=
0
;
i
<
path
.
length
;
i
+=
1
)
{
switch
(
path
[
i
])
{
case
"
plan
"
:
case
"
personal
"
:
case
"
order
"
:
backup
=
1
;
mode
=
path
[
i
];
break
;
}
}
last
=
path
.
length
-
1
;
return
{
"
mode
"
:
mode
,
"
mode
"
:
path
[
last
]
,
"
fragment_list
"
:
path
,
"
data_url
"
:
clean_hash
,
"
layout_level
"
:
path
.
length
-
1
-
backup
,
"
layout_level
"
:
last
,
"
deeplink
"
:
true
,
"
root
"
:
path
[
0
]
};
...
...
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