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
eb3d8ccd
Commit
eb3d8ccd
authored
Nov 15, 2013
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
various bugfixes and API cleanup
parent
5b48b8c2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
15 deletions
+18
-15
data/application_sample.json
data/application_sample.json
+1
-1
data/category_fieldlist.json
data/category_fieldlist.json
+3
-3
data/category_sample.json
data/category_sample.json
+6
-6
js/erp5_loader.js
js/erp5_loader.js
+8
-5
No files found.
data/application_sample.json
View file @
eb3d8ccd
[
{
"application_image_type"
:
"image"
,
"application_image_url"
:
"http://
task-manager.site44.com
/js/lib/jquerymobile/images/home.png"
,
"application_image_url"
:
"http://
www.officejs.com/app/task_manager
/js/lib/jquerymobile/images/home.png"
,
"application_toc_accept"
:
true
,
"application_published"
:
"08/11/2013"
,
"application_submitted"
:
"08/11/2013"
,
...
...
data/category_fieldlist.json
View file @
eb3d8ccd
...
...
@@ -208,15 +208,15 @@
}
}
},
"category_
href
"
:
{
"category_
url
"
:
{
"type"
:
"StringField"
,
"widget"
:
{
"id"
:
"category_
href
"
,
"id"
:
"category_
url
"
,
"title"
:
"URL parameter"
,
"title_i18n"
:
"category.field_list.url_parameter.title"
,
"description"
:
"URL parameter to be used for this category."
,
"description_i18n"
:
"category.field_list.url_parameter.description"
,
"alternate_name"
:
"category_
href
"
,
"alternate_name"
:
"category_
url
"
,
"default_value"
:
null
,
"css_class"
:
null
,
"hidden"
:
null
,
...
...
data/category_sample.json
View file @
eb3d8ccd
...
...
@@ -5,7 +5,7 @@
"category_description"
:
"Customer Relationship Management"
,
"category_image_url"
:
"group"
,
"category_image_type"
:
"icon"
,
"category_
href
"
:
"#contacts"
,
"category_
url
"
:
"#contacts"
,
"category_title_i18n"
:
"category.custom.contacts.title"
,
"category_description_i18n"
:
"category.custom.contacts.description"
},
...
...
@@ -15,7 +15,7 @@
"category_description"
:
"Form Workflows"
,
"category_image_url"
:
"cogs"
,
"category_image_type"
:
"icon"
,
"category_
href
"
:
"#database"
,
"category_
url
"
:
"#database"
,
"category_title_i18n"
:
"category.custom.database.title"
,
"category_description_i18n"
:
"category.custom.database.description"
},
...
...
@@ -25,7 +25,7 @@
"category_description"
:
"Productivity Tools"
,
"category_image_url"
:
"file-text-alt"
,
"category_image_type"
:
"icon"
,
"category_
href
"
:
"#documents"
,
"category_
url
"
:
"#documents"
,
"category_title_i18n"
:
"category.custom.documents.title"
,
"category_description_i18n"
:
"category.custom.documents.description"
},
...
...
@@ -35,7 +35,7 @@
"category_description"
:
"Task and Project Management"
,
"category_image_url"
:
"tasks"
,
"category_image_type"
:
"icon"
,
"category_
href
"
:
"#projects"
,
"category_
url
"
:
"#projects"
,
"category_title_i18n"
:
"category.custom.projects.title"
,
"category_description_i18n"
:
"category.custom.projects.description"
},
...
...
@@ -45,7 +45,7 @@
"category_description"
:
"Image Drawing and Editing"
,
"category_image_url"
:
"edit"
,
"category_image_type"
:
"icon"
,
"category_
href
"
:
"#drawings"
,
"category_
url
"
:
"#drawings"
,
"category_title_i18n"
:
"category.custom.drawings.title"
,
"category_description_i18n"
:
"category.custom.drawings.description"
},
...
...
@@ -55,7 +55,7 @@
"category_description"
:
"Data Analysis Tools"
,
"category_image_url"
:
"filter"
,
"category_image_type"
:
"icon"
,
"category_
href
"
:
"#reports"
,
"category_
url
"
:
"#reports"
,
"category_title_i18n"
:
"category.custom.reports.title"
,
"category_description_i18n"
:
"category.custom.reports.description"
}
...
...
js/erp5_loader.js
View file @
eb3d8ccd
...
...
@@ -326,8 +326,8 @@
clean
=
property
.
replace
((
replace
+
"
_
"
),
""
);
switch
(
clean
)
{
case
"
href
"
:
obj
[
clean
]
=
item
[
property
];
case
"
url
"
:
obj
[
"
href
"
]
=
item
[
property
];
split
=
item
[
property
].
split
(
"
//
"
);
if
(
split
.
length
>
1
)
{
...
...
@@ -3856,15 +3856,15 @@
if
(
document
.
getElementById
(
raw_url
.
split
(
"
#
"
).
pop
())
||
raw_url
===
$
.
mobile
.
getDocumentUrl
()
||
data
.
options
.
role
===
"
popup
"
)
{
console
.
log
(
"
let JQM go
"
)
// console.log("let JQM go, but stop us!
")
return
;
}
if
(
document
.
getElementById
(
config
.
id
))
{
console
.
log
(
"
stop JQM
"
)
//
console.log("stop JQM")
e
.
preventDefault
();
return
;
}
console
.
log
(
"
HIJACK and stop JQM
"
)
//
console.log("HIJACK and stop JQM")
handle
=
true
;
e
.
preventDefault
();
...
...
@@ -3889,11 +3889,14 @@
if
(
config
.
deeplink
)
{
create
=
true
;
}
// prevent browser loading hash?query.json
if
(
config
.
layout_identifier
.
split
(
"
?
"
).
length
>
1
)
{
destination
=
config
.
layout_identifier
.
split
(
"
?
"
)[
0
];
}
else
{
destination
=
config
.
layout_identifier
;
}
init
.
fetchPageLayouts
(
"
settings
"
,
destination
)
.
then
(
function
(
reply
)
{
return
init
.
setPageElements
(
...
...
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