Commit c90db793 authored by Gabriel L. Oliveira's avatar Gabriel L. Oliveira

Add method to display dynamic 'loading' information

* toogleLoading([true, false], message) is used to show or hide loading
  alert, with a dynamic message
parent 0a9345e0
......@@ -46,6 +46,20 @@ function getCurrentObjectUrl(){\n
return window.location.href.split("?")[0];\n
}\n
\n
function toogleLoading(is_toogle, _message) {\n
if (is_toogle) {\n
var loading_wrapper = $("#loading-wrapper").first();\n
toogleLoading.prototype.old_loading_message = loading_wrapper.find(\'p\')[0].textContent;\n
loading_wrapper.find(\'p\')[0].textContent = _message;\n
loading_wrapper.show();\n
}\n
else {\n
var loading_wrapper = $("#loading-wrapper").first();\n
loading_wrapper.hide();\n
loading_wrapper.find(\'p\')[0].textContent = toogleLoading.prototype.old_loading_message;\n
}\n
}\n
\n
function changeLanguage(language){\n
$.ajax({\n
url: "WebSite_changeLanguage?language=" + language,\n
......
2011-09-21 gabriel.oliveira
* Add method to display dynamic 'loading' information
2011-09-21 gabriel.oliveira
* Remove 'listbox-title' from header
......
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