diff --git a/mod/photos.php b/mod/photos.php index 6798cb002..2fe2d8a74 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -281,6 +281,7 @@ function photos_post(&$a) { ); if(count($p)) { $ext = $phototypes[$p[0]['type']]; + $r = q("UPDATE `photo` SET `description` = '%s', `album` = '%s', `allow_cid` = '%s', `allow_gid` = '%s', `deny_cid` = '%s', `deny_gid` = '%s' WHERE `resource_id` = '%s' AND `uid` = %d", dbesc($desc), dbesc($albname), @@ -504,6 +505,9 @@ function photos_content(&$a) { $o = ""; + $o .= "\r\n"; + // tabs $_is_owner = (local_user() && (local_user() == $owner_uid)); diff --git a/view/js/mod_photos.js b/view/js/mod_photos.js index 82957ae44..c9d13f742 100644 --- a/view/js/mod_photos.js +++ b/view/js/mod_photos.js @@ -1,5 +1,13 @@ + +var ispublic = aStr['everybody']; + $(document).ready(function() { + $("a#settings-default-perms-menu").colorbox({ + 'inline' : true, + 'transition' : 'elastic' + }); + $('#contact_allow, #contact_deny, #group_allow, #group_deny').change(function() { var selstr; $('#contact_allow option:selected, #contact_deny option:selected, #group_allow option:selected, #group_deny option:selected').each( function() { diff --git a/view/tpl/photo_view.tpl b/view/tpl/photo_view.tpl index 8c19d39d7..f5e5bb7b5 100755 --- a/view/tpl/photo_view.tpl +++ b/view/tpl/photo_view.tpl @@ -1,4 +1,4 @@ -
+

{{$album.1}}

-
- - {{$edit.permissions}} - -
- -
-
- {{$edit.aclselect}} +
+ + {{$edit.permissions}} +
+ -
-
+
+
+