Commit ca222f44280ce48f8e0d8270c72227d7f9092f3b
1 parent
af9ffd11
Exists in
master
and in
7 other branches
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,17 +146,19 @@ o - string retornada pelo ajax | ||
146 | function core_handleFailure(o,texto) | 146 | function core_handleFailure(o,texto) |
147 | { | 147 | { |
148 | //div onde será mostrado o log | 148 | //div onde será mostrado o log |
149 | - alert(texto) | 149 | + //alert(texto) |
150 | if(!$i('logajax')) | 150 | if(!$i('logajax')) |
151 | {return;} | 151 | {return;} |
152 | log = $i('logajax'); | 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 | if(o.responseText !== undefined) | 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 | if (!YAHOO.example.container.wait) | 163 | if (!YAHOO.example.container.wait) |
162 | { | 164 | { |