aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/mod_photos.js
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-02-11 18:45:50 -0800
committerfriendica <info@friendica.com>2014-02-11 18:45:50 -0800
commit95a45a119dd61241ae8d0f0f8eda467cff64d855 (patch)
treed4769cba376030edc5862e8fbe6005fb235b15b9 /view/js/mod_photos.js
parentb5728fa42efa0d12da8814711e0875da7fb88672 (diff)
downloadvolse-hubzilla-95a45a119dd61241ae8d0f0f8eda467cff64d855.tar.gz
volse-hubzilla-95a45a119dd61241ae8d0f0f8eda467cff64d855.tar.bz2
volse-hubzilla-95a45a119dd61241ae8d0f0f8eda467cff64d855.zip
shamelessly steal, and cut/paste from the settings page to get mod_photos edit permissions working - and it looks like we still have some other fancybox instances (yet another lightbox) which haven't yet been converted to colorbox and will need to be fixed. Way too many lightboxes.
Diffstat (limited to 'view/js/mod_photos.js')
-rw-r--r--view/js/mod_photos.js8
1 files changed, 8 insertions, 0 deletions
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() {