-
Notifications
You must be signed in to change notification settings - Fork 27
MUMUP-2431 Trap exclusive mode error and display message. #425
Conversation
var returnMe=-1; | ||
var data = attemptExclusiveCall(portlet, returnMe); | ||
if(returnMe===-1){ | ||
portlet.exclusiveContent="<font color=\"red\">An error occured retrieving your data. This service is unavailable at this time.</font>"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@keirserrie @jjones770 - wanna take a gander at this?
A handy screenshot would help me visualize the error html |
var getExclusiveMarkup = function(portlet) { | ||
|
||
var returnMe=-1; | ||
var data = attemptExclusiveCall(portlet, returnMe); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So we may have to chat about promises. Hit me up when you have a moment.
Refactored the change to put it all back under one function, per @timlevett. |
@keirserrie Jess : Ok? See above. |
@timlevett : What do you want to do to the style? |
Talked in chat, just reiterating: http://getbootstrap.com/components/#alerts would be preferred for this.
|
👍 |
MUMUP-2431 Trap exclusive mode error and display message.
Server-side error was bypassing client-side failure function. Moved the $http.get(...) function to it's own method, and test the results of that.