Permalink
Browse files

Adding ajax error handling when user info request returns error, fixi…

…ng image issues
  • Loading branch information...
1 parent 6125aef commit 7ea44e898a3ca8875cb2554bd36a0753c62c2518 @rdohms committed Feb 15, 2011
View
@@ -4,48 +4,48 @@
@font-face {
font-family: 'TitilliumText22LThin';
- src: url('/fonts/TitilliumText22L001-webfont.eot');
- src: local(''), url('/fonts/TitilliumText22L001-webfont.woff') format('woff'), url('/fonts/TitilliumText22L001-webfont.ttf') format('truetype'), url('/fonts/TitilliumText22L001-webfont.svg#webfontY46BzlYn') format('svg');
+ src: url('fonts/TitilliumText22L001-webfont.eot');
+ src: local(''), url('fonts/TitilliumText22L001-webfont.woff') format('woff'), url('fonts/TitilliumText22L001-webfont.ttf') format('truetype'), url('fonts/TitilliumText22L001-webfont.svg#webfontY46BzlYn') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'TitilliumText22LLight';
- src: url('/fonts/TitilliumText22L002-webfont.eot');
- src: local(''), url('/fonts/TitilliumText22L002-webfont.woff') format('woff'), url('/fonts/TitilliumText22L002-webfont.ttf') format('truetype'), url('/fonts/TitilliumText22L002-webfont.svg#webfontWLF9Q09S') format('svg');
+ src: url('fonts/TitilliumText22L002-webfont.eot');
+ src: local(''), url('fonts/TitilliumText22L002-webfont.woff') format('woff'), url('fonts/TitilliumText22L002-webfont.ttf') format('truetype'), url('fonts/TitilliumText22L002-webfont.svg#webfontWLF9Q09S') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'TitilliumText22LRegular';
- src: url('/fonts/TitilliumText22L003-webfont.eot');
- src: local(''), url('/fonts/TitilliumText22L003-webfont.woff') format('woff'), url('/fonts/TitilliumText22L003-webfont.ttf') format('truetype'), url('/fonts/TitilliumText22L003-webfont.svg#webfontiXtJn0Qu') format('svg');
+ src: url('fonts/TitilliumText22L003-webfont.eot');
+ src: local(''), url('fonts/TitilliumText22L003-webfont.woff') format('woff'), url('fonts/TitilliumText22L003-webfont.ttf') format('truetype'), url('fonts/TitilliumText22L003-webfont.svg#webfontiXtJn0Qu') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'TitilliumText22LMedium';
- src: url('/fonts/TitilliumText22L004-webfont.eot');
- src: local(''), url('/fonts/TitilliumText22L004-webfont.woff') format('woff'), url('/fonts/TitilliumText22L004-webfont.ttf') format('truetype'), url('/fonts/TitilliumText22L004-webfont.svg#webfontd3ljp2K0') format('svg');
+ src: url('fonts/TitilliumText22L004-webfont.eot');
+ src: local(''), url('fonts/TitilliumText22L004-webfont.woff') format('woff'), url('fonts/TitilliumText22L004-webfont.ttf') format('truetype'), url('fonts/TitilliumText22L004-webfont.svg#webfontd3ljp2K0') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'TitilliumText22LBold';
- src: url('/fonts/TitilliumText22L005-webfont.eot');
- src: local(''), url('/fonts/TitilliumText22L005-webfont.woff') format('woff'), url('/fonts/TitilliumText22L005-webfont.ttf') format('truetype'), url('/fonts/TitilliumText22L005-webfont.svg#webfontZL0yA7s8') format('svg');
+ src: url('fonts/TitilliumText22L005-webfont.eot');
+ src: local(''), url('fonts/TitilliumText22L005-webfont.woff') format('woff'), url('fonts/TitilliumText22L005-webfont.ttf') format('truetype'), url('fonts/TitilliumText22L005-webfont.svg#webfontZL0yA7s8') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'TitilliumText22LXBold';
- src: url('/fonts/TitilliumText22L006-webfont.eot');
- src: local(''), url('/fonts/TitilliumText22L006-webfont.woff') format('woff'), url('/fonts/TitilliumText22L006-webfont.ttf') format('truetype'), url('/fonts/TitilliumText22L006-webfont.svg#webfontDGZcY3kb') format('svg');
+ src: url('fonts/TitilliumText22L006-webfont.eot');
+ src: local(''), url('fonts/TitilliumText22L006-webfont.woff') format('woff'), url('fonts/TitilliumText22L006-webfont.ttf') format('truetype'), url('fonts/TitilliumText22L006-webfont.svg#webfontDGZcY3kb') format('svg');
font-weight: normal;
font-style: normal;
}
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
0 public/images/overlay/apple.png 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
0 public/images/overlay/black.png 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
0 public/images/overlay/close.png 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
0 public/images/overlay/gray.png 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
0 public/images/overlay/petrol.png 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
0 public/images/overlay/red.png 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
0 public/images/overlay/white.png 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
0 public/images/tooltip/black.png 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
0 public/images/tooltip/white.png 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -10,6 +10,11 @@ function loadUserInfo(uid, token) {
var r = $.parseJSON(response);
$('#user_' + r.data.uid + '_loading').hide();
$('#userInfoTpl').tmpl(r.data).appendTo('#user_' + r.data.uid)
+ },
+ error: function(response) {
+ var r = $.parseJSON(response.responseText);
+ $('#user_' + uid + '_loading').hide();
+ $('#user_' + uid).html('Error: ' + r.message)
}
});
}

0 comments on commit 7ea44e8

Please sign in to comment.