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
80604c9e
Commit
80604c9e
authored
Nov 15, 2013
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Safari: test parsing stored JSON definition
parent
00ffe8ee
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 @
80604c9e
...
...
@@ -3150,8 +3150,6 @@
* @return {object} object Parsed object
*/
util
.
parseIfNeeded
=
function
(
data
)
{
console
.
log
(
"
we get
"
)
console
.
log
(
data
)
if
(
typeof
data
===
"
string
"
)
{
return
JSON
.
parse
(
data
);
}
...
...
@@ -4350,16 +4348,14 @@
* @param {object} response object containing data (jio.util.ajax response)
* @return {object} promise object
*/
init
.
setupStorages
=
function
(
respons
e
)
{
init
.
setupStorages
=
function
(
e
)
{
var
i
,
store
,
promises
=
[],
config
=
response
.
target
.
response
;
if
(
typeof
config
===
"
string
"
)
{
config
=
JSON
.
parse
(
config
);
}
config
=
util
.
parseIfNeeded
(
e
.
target
.
response
);
console
.
log
(
config
)
console
.
log
(
config
.
length
)
for
(
i
=
0
;
i
<
config
.
length
;
i
+=
1
)
{
store
=
config
[
i
].
definition
;
...
...
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