Commit ca222f44280ce48f8e0d8270c72227d7f9092f3b

Authored by Edmar Moretti
1 parent af9ffd11

Eliminação de alert de mensagens de erro equivocadas

Showing 1 changed file with 8 additions and 6 deletions   Show diff stats
admin/js/core.js
... ... @@ -146,17 +146,19 @@ o - string retornada pelo ajax
146 146 function core_handleFailure(o,texto)
147 147 {
148 148 //div onde será mostrado o log
149   - alert(texto)
  149 + //alert(texto)
150 150 if(!$i('logajax'))
151 151 {return;}
152 152 log = $i('logajax');
153   - YAHOO.log("The failure handler was called. tId: " + o.tId + ".", "info", "example");
  153 + //YAHOO.log("The failure handler was called. tId: " + o.tId + ".", "info", "example");
154 154 if(o.responseText !== undefined)
155 155 {
156   - log.innerHTML = "<ul><li>Transaction id: " + o.tId + "</li>";
157   - log.innerHTML += "<li>HTTP status: " + o.status + "</li>";
158   - log.innerHTML += "<li>Status code message: " + o.statusText + "</li>";
159   - log.innerHTML += "<li>PHP message: " + texto + "</li></ul>";
  156 + if(o.statusText != "OK"){
  157 + log.innerHTML = "<ul><li>Transaction id: " + o.tId + "</li>";
  158 + log.innerHTML += "<li>HTTP status: " + o.status + "</li>";
  159 + log.innerHTML += "<li>Status code message: " + o.statusText + "</li>";
  160 + log.innerHTML += "<li>PHP message: " + texto + "</li></ul>";
  161 + }
160 162 }
161 163 if (!YAHOO.example.container.wait)
162 164 {
... ...