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
7b3118fb
Commit
7b3118fb
authored
Jan 14, 2014
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switched to url-encoding page ids
parent
122a726b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
js/erp5_loader.js
js/erp5_loader.js
+7
-7
No files found.
js/erp5_loader.js
View file @
7b3118fb
...
...
@@ -3263,16 +3263,16 @@
container
=
factory
.
element
(
"
div
"
,
{
"
id
"
:
url_dict
.
id
,
"
id
"
:
window
.
encodeURIComponent
(
url_dict
.
id
),
//"id": url_dict.id,
"
className
"
:
"
ui-page
"
+
(
"
ui-page-theme-
"
+
content_dict
.
theme
||
""
)
+
"
"
+
((
content_dict
.
fix
&&
content_dict
.
fix
===
false
)
?
""
:
"
ui-page-header-fixed ui-page-footer-fixed
"
)
},
{
"
data-module
"
:
url_dict
.
id
,
"
data-role
"
:
"
page
"
,
// NOTE: cheat JQM, until
deeplink
s are possible!
// NOTE: cheat JQM, until
query-param
s are possible!
"
data-url
"
:
split_url
[
1
]
?
split_url
[
1
].
split
(
"
?
"
)[
0
]
:
split_url
[
0
],
"
data-external-page
"
:
true
,
...
...
@@ -5405,7 +5405,6 @@
break
;
case
"
add
"
:
config
.
mode
=
"
add
"
;
//backup = 1;
break
;
case
"
config
"
:
config
.
mode
=
"
config
"
;
...
...
@@ -6406,7 +6405,9 @@
config
=
app
.
generateLinkObject
(
raw_url
);
if
(
e
)
{
page
=
document
.
getElementById
(
raw_url
.
split
(
"
#
"
).
pop
());
page
=
document
.
getElementById
(
window
.
encodeURIComponent
(
raw_url
.
split
(
"
#
"
).
pop
())
);
base
=
page
?
page
.
getAttribute
(
"
data-external-page
"
)
:
null
;
first
=
$
.
mobile
.
firstPage
[
0
].
id
===
config
.
id
;
...
...
@@ -6555,7 +6556,6 @@
* @method preventFilterableTrigger
* @params {object} element Filterable element
*/
// TODO: make sure this triggers only once!
app
.
preventFilterableTrigger
=
function
(
element
)
{
$
(
element
).
on
(
"
filterablebeforefilter
"
,
function
(
e
)
{
e
.
preventDefault
();
...
...
@@ -6903,7 +6903,7 @@
if
(
kid
.
tagName
===
"
DIV
"
)
{
if
(
util
.
testForString
(
"
ui-page
"
,
kid
.
className
))
{
return
kid
.
id
||
kid
.
getAttribute
(
"
data-module
"
)
;
return
kid
.
id
;
}
}
}
...
...
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