diff --git a/awx/ui/static/js/awx-min.js b/awx/ui/static/js/awx-min.js index 7cdcbd79ec..8bdfe483a5 100644 --- a/awx/ui/static/js/awx-min.js +++ b/awx/ui/static/js/awx-min.js @@ -4,7 +4,7 @@ * * awx-min.js * - * master-b32c0dc, Thu Jul 11 23:36:14 2013 -0400 + * master-c9b19ba, Fri Jul 12 10:30:38 2013 -0400 * */ var urlPrefix="/static/"; @@ -25,7 +25,7 @@ c.replace(/\_/g," ");$('.nav-tabs a[href="#'+c+'"]').tab("show");k.viewCurrentUs data:a,status:b});u.$emit("callFinished")}).error(function(a,b,d,c){u.queue.push({result:"error",data:a,status:b,headers:d});u.$emit("callFinished")})}else v(1)};u.toggle_admin=function(a){"success"==u[e.iterator+"_"+a+"_class"]?(u[e.iterator+"_"+a+"_class"]="",document.getElementById("check_"+a).checked=!1,-1 0 ) { - $rootScope.alertHeader = 'Error!'; - $rootScope.alertBody = data.non_field_errors[0]; + var hdr, msg; + if ( data.non_field_errors && data.non_field_errors.length > 0 ) { + hdr = 'Error'; + msg = data.non_field_errors[0]; } else { - $rootScope.alertHeader = 'Error!'; - $rootScope.alertBody = 'The login attempt failed with a status of: ' + status; + hdr = 'Error'; + msg = 'The login attempt failed with a status of: ' + status; } $scope.reset(); - $('#alert-modal').modal({ show: true, keyboard: true, backdrop: 'static' }); + Alert(hdr, msg); } }); } diff --git a/awx/ui/static/partials/login-dialog.html b/awx/ui/static/partials/login-dialog.html index 6f8e9432c2..4997bde384 100644 --- a/awx/ui/static/partials/login-dialog.html +++ b/awx/ui/static/partials/login-dialog.html @@ -27,8 +27,7 @@