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
4dfbc65b
Commit
4dfbc65b
authored
Nov 15, 2013
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Safari: find undefined response from XHR/Ajax
parent
62bd139b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
js/erp5_loader.js
js/erp5_loader.js
+24
-0
No files found.
js/erp5_loader.js
View file @
4dfbc65b
...
...
@@ -3022,6 +3022,8 @@
"
baggage
"
:
parcel
.
baggage
})
.
then
(
function
(
reply
)
{
console
.
log
(
"
1
"
)
console
.
log
(
reply
)
return
{
"
response
"
:
util
.
parseIfNeeded
(
reply
.
response
),
"
baggage
"
:
reply
.
baggage
...
...
@@ -3732,6 +3734,8 @@
init
.
fetchPageLayouts
(
"
settings
"
,
page
.
id
)
.
then
(
function
(
reply
)
{
console
.
log
(
"
2
"
)
console
.
log
(
reply
)
//init.setPageTitle(page, util.parseIfNeeded(reply.response[0]));
if
(
!
page
.
querySelectorAll
(
"
div.ui-content
"
)[
0
]
.
getAttribute
(
"
data-bound
"
))
{
...
...
@@ -3891,6 +3895,8 @@
}
init
.
fetchPageLayouts
(
"
settings
"
,
config
.
layout_identifier
)
.
then
(
function
(
reply
)
{
console
.
log
(
"
3
"
)
console
.
log
(
reply
)
return
init
.
setPageElements
(
config
,
reply
,
...
...
@@ -3924,6 +3930,8 @@
* @return {object} response object/promise
*/
init
.
parseGadgetConfiguration
=
function
(
reply
)
{
console
.
log
(
"
4
"
)
console
.
log
(
reply
)
var
parsed
,
baggage
=
reply
.
baggage
;
parsed
=
util
.
parseIfNeeded
(
reply
.
response
);
...
...
@@ -3952,6 +3960,8 @@
*/
// TODO: remove when not needed anymore
init
.
testStorageForData
=
function
(
reply
)
{
console
.
log
(
"
6
"
)
console
.
log
(
reply
)
var
baggage
=
reply
.
baggage
;
if
(
reply
.
response
)
{
...
...
@@ -3977,6 +3987,8 @@
*/
// TODO: remove when not needed anymore
init
.
retrieveSampleData
=
function
(
reply
)
{
console
.
log
(
"
7
"
)
console
.
log
(
reply
)
var
baggage
=
reply
.
baggage
;
if
(
reply
.
response
)
{
...
...
@@ -4000,6 +4012,8 @@
*/
// TODO: remove when not needed anymore
init
.
storeSampleDataInStorage
=
function
(
reply
)
{
console
.
log
(
"
9
"
)
console
.
log
(
reply
)
var
baggage
=
reply
.
baggage
;
if
(
reply
.
response
)
{
...
...
@@ -4022,6 +4036,8 @@
* @return {object} response object/promise
*/
init
.
fetchDataTotal
=
function
(
reply
)
{
console
.
log
(
"
10
"
)
console
.
log
(
reply
)
var
baggage
=
reply
.
baggage
;
if
(
baggage
.
create
===
false
)
{
...
...
@@ -4055,6 +4071,8 @@
* @return {object} response object/promise
*/
init
.
fetchDataQuery
=
function
(
reply
)
{
console
.
log
(
"
11
"
)
console
.
log
(
reply
)
var
parsed
,
baggage
=
reply
.
baggage
;
// single item query
...
...
@@ -4097,6 +4115,8 @@
* @return {object} response object/promise
*/
init
.
generateGadgetContent
=
function
(
reply
)
{
console
.
log
(
"
13
"
)
console
.
log
(
reply
)
var
baggage
=
reply
.
baggage
,
selector
,
element
;
// append gadget to wrapping div
...
...
@@ -4354,6 +4374,8 @@
* @return {object} promise object
*/
init
.
setupStorages
=
function
(
reply
)
{
console
.
log
(
"
15
"
)
console
.
log
(
reply
)
var
i
,
store
,
promises
=
[],
...
...
@@ -4392,6 +4414,8 @@
*/
// TODO: run this through the main gadget handler, only difference is scope
init
.
setupGlobalElements
=
function
(
reply
)
{
console
.
log
(
"
16
"
)
console
.
log
(
reply
)
var
i
,
element
,
content
,
...
...
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