|
@@ -81,6 +81,16 @@ loadPhotoInfo = function(photoID) {
|
|
|
|
|
|
api.post('Photo::get', params, function(data) {
|
|
|
|
|
|
+ if (data==='Warning: Photo private!'||
|
|
|
+ data==='Warning: Wrong password!') {
|
|
|
+
|
|
|
+ $('body').append(build.no_content('question-mark'));
|
|
|
+ $('body').removeClass('view');
|
|
|
+ header.dom().remove();
|
|
|
+ return false;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
/* Set title */
|
|
|
|
|
|
if (!data.title) data.title = 'Untitled';
|