Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

BZ807436: Fix login error message on IE8

https://bugzilla.redhat.com/show_bug.cgi?id=807436

The issue was caused by the jQuery.isEmptyObject() call. As the documentation states it should not be used with strings.
http://api.jquery.com/jQuery.isEmptyObject/
  • Loading branch information...
commit 9013bc2fc2a341ec080b2e20e3fbbdc04fbc9f52 1 parent 297af0a
Imre Farkas ifarkas authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  src/app/views/user_sessions/new.html.haml
2  src/app/views/user_sessions/new.html.haml
@@ -34,7 +34,7 @@
34 34 //we will have to check if status code == 0 in 'complete' callback
35 35 $('#error-content').remove();
36 36 $('#primary-container').prepend('<div id="error-content" class="error" style="opacity: 0; position: relative;"></div>');
37   - var text = $.isEmptyObject(response.responseText) ? response.statusText : response.responseText;
  37 + var text = response.responseText == '' ? response.statusText : response.responseText;
38 38 if(response.status !== 401) text = "Internal Server Error";
39 39 $('#error-content').html('<p class="text">' + text + '</p>');
40 40 $('#error-content').animate({ 'opacity': 1, 'top': -10 },{queue:false,duration:150});

0 comments on commit 9013bc2

Please sign in to comment.
Something went wrong with that request. Please try again.