Commit 4dfbc65b authored by Sven Franck's avatar Sven Franck

Safari: find undefined response from XHR/Ajax

parent 62bd139b
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment