Commit c48d903b authored by Romain Courteaud's avatar Romain Courteaud Committed by Sebastien Robin

Activate JQM loader

parent dfb7f3a9
...@@ -313,7 +313,6 @@ ...@@ -313,7 +313,6 @@
var gadget = this,\n var gadget = this,\n
queue;\n queue;\n
\n \n
// $.mobile.loading(\'show\');\n
if (options.jio_key === undefined) {\n if (options.jio_key === undefined) {\n
if (options.page === "login") {\n if (options.page === "login") {\n
queue = renderLoginForm(gadget, options);\n queue = renderLoginForm(gadget, options);\n
...@@ -335,6 +334,7 @@ ...@@ -335,6 +334,7 @@
view: options.view\n view: options.view\n
};\n };\n
\n \n
$.mobile.loading(\'show\');\n
return queue\n return queue\n
.push(function (all_response) {\n .push(function (all_response) {\n
var page_element = all_response[1],\n var page_element = all_response[1],\n
...@@ -351,9 +351,11 @@ ...@@ -351,9 +351,11 @@
}\n }\n
element.appendChild(page_element);\n element.appendChild(page_element);\n
\n \n
$.mobile.loading(\'hide\');\n
return $(element).trigger("create");\n return $(element).trigger("create");\n
})\n })\n
.push(undefined, function (error) {\n .push(undefined, function (error) {\n
$.mobile.loading(\'hide\');\n
if (error.status === 401) {\n if (error.status === 401) {\n
// Redirect to the login view\n // Redirect to the login view\n
return gadget.aq_pleasePublishMyState({page: "login"})\n return gadget.aq_pleasePublishMyState({page: "login"})\n
...@@ -361,7 +363,6 @@ ...@@ -361,7 +363,6 @@
}\n }\n
console.error(error);\n console.error(error);\n
console.error(error.stack);\n console.error(error.stack);\n
// $.mobile.loading(\'hide\');\n
throw error;\n throw error;\n
});\n });\n
});\n });\n
......
25 26
\ No newline at end of file \ No newline at end of file
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