Эх сурвалжийг харах

Push before platform switch

TC pushbot 5 4 жил өмнө
parent
commit
cdf90212a6

+ 1 - 1
mod/share/share.go

@@ -636,7 +636,7 @@ func (s *Manager) DeleteShare(userinfo *user.User, vpath string) error {
 
 	} else {
 		//Already deleted
-		return nil
+		return errors.New("This file is not shared")
 	}
 
 }

+ 3 - 0
web/Camera/preview.html

@@ -151,6 +151,9 @@
                         //Load it
                         currentViewingPhoto = overrideIndex;
                         photoList = data;
+                        if (overrideIndex > photoList.length - 1){
+                            overrideIndex = photoList.length - 1;
+                        }
                         $("#viewpoint").attr('src', '../media/?file=' + data[overrideIndex]);
                     }
                 });