diff options
author | friendica <info@friendica.com> | 2014-06-14 20:16:40 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-06-14 20:16:40 -0700 |
commit | 0f6c321e3f23d43e407aa3b3b424f20b56e0032d (patch) | |
tree | f18d04fefe1ce24447dc3f824dfde711cacabb0e | |
parent | b67c8ec8b99f5a552c08afaedf022b088e55ef47 (diff) | |
download | volse-hubzilla-0f6c321e3f23d43e407aa3b3b424f20b56e0032d.tar.gz volse-hubzilla-0f6c321e3f23d43e407aa3b3b424f20b56e0032d.tar.bz2 volse-hubzilla-0f6c321e3f23d43e407aa3b3b424f20b56e0032d.zip |
only show jotnets when posting conversation items
-rw-r--r-- | assets/home.html | 10 | ||||
-rw-r--r-- | doc/To-Do-Code.md | 1 | ||||
-rw-r--r-- | doc/to_do_code.bb | 2 | ||||
-rw-r--r-- | include/acl_selectors.php | 6 | ||||
-rw-r--r-- | mod/chat.php | 2 | ||||
-rw-r--r-- | mod/display.php | 2 | ||||
-rw-r--r-- | mod/editwebpage.php | 2 | ||||
-rwxr-xr-x | mod/events.php | 2 | ||||
-rw-r--r-- | mod/filestorage.php | 2 | ||||
-rw-r--r-- | mod/mitem.php | 4 | ||||
-rw-r--r-- | mod/photos.php | 2 | ||||
-rw-r--r-- | mod/settings.php | 2 | ||||
-rw-r--r-- | mod/webpages.php | 2 |
13 files changed, 22 insertions, 17 deletions
diff --git a/assets/home.html b/assets/home.html index 41e3ffbc3..9789209ef 100644 --- a/assets/home.html +++ b/assets/home.html @@ -92,8 +92,8 @@ var r = 0; var g = 0; var b = 0; -var speed = 2; -var delay = 1000; +var speed = 10; +var delay = 150; var timer = null; var holdid = 0; @@ -113,7 +113,7 @@ function update_element() { var id = document.getElementById(element); id.innerHTML = curr; - timer = setTimeout('fadein();',5); + timer = setTimeout('fadein();',3); } function fadeout() { @@ -124,7 +124,7 @@ function fadeout() { b = (((b + speed) < 255) ? b + speed : 255); if((r != 255) && (g != 255) && (b != 255)) { - timer = setTimeout('fadeout();',10); + timer = setTimeout('fadeout();',5); } else update_element(); @@ -138,7 +138,7 @@ function fadein() { b = (((b - speed) > 0) ? b - speed : 0); if(r && g && b) { - timer = setTimeout('fadein();',10); + timer = setTimeout('fadein();',5); } else { timer = setTimeout('fadeout();',delay); diff --git a/doc/To-Do-Code.md b/doc/To-Do-Code.md index 2ab4e3dfb..93edbf56d 100644 --- a/doc/To-Do-Code.md +++ b/doc/To-Do-Code.md @@ -40,6 +40,7 @@ We need much more than this, but here are areas where developers can help. Pleas * Uploads - integrate https://github.com/blueimp/jQuery-File-Upload +* App taxonomy * replace the tinymce visual editor and/or make the visual editor pluggable and responsive to different output formats. We probably want library/bbedit for bbcode. This needs a fair bit of work to catch up with our "enhanced bbcode", but start with images, links, bold and highlight and work from there. diff --git a/doc/to_do_code.bb b/doc/to_do_code.bb index 37dab840e..63a5c881f 100644 --- a/doc/to_do_code.bb +++ b/doc/to_do_code.bb @@ -40,6 +40,8 @@ We need much more than this, but here are areas where developers can help. Pleas [li]Uploads - integrate #^[url=https://github.com/blueimp/jQuery-File-Upload]https://github.com/blueimp/jQuery-File-Upload[/url][/li]
+[li]App taxonomy[/li]
+
[li]replace the tinymce visual editor and/or make the visual editor pluggable and responsive to different output formats. We probably want library/bbedit for bbcode. This needs a fair bit of work to catch up with our "enhanced bbcode", but start with images, links, bold and highlight and work from there.[/li]
[li]Photos module - turn photos into normal conversations and fix tagging[/li]
diff --git a/include/acl_selectors.php b/include/acl_selectors.php index 6ce4c3f9b..8d94264e4 100644 --- a/include/acl_selectors.php +++ b/include/acl_selectors.php @@ -211,7 +211,7 @@ function fixacl(&$item) { $item = str_replace(array('<','>'),array('',''),$item); } -function populate_acl($defaults = null,$unused = false) { +function populate_acl($defaults = null,$show_jotnets = true) { $allow_cid = $allow_gid = $deny_cid = $deny_gid = false; @@ -231,7 +231,9 @@ function populate_acl($defaults = null,$unused = false) { } $jotnets = ''; - call_hooks('jot_networks', $jotnets); + if($show_jotnets) { + call_hooks('jot_networks', $jotnets); + } $tpl = get_markup_template("acl_selector.tpl"); $o = replace_macros($tpl, array( diff --git a/mod/chat.php b/mod/chat.php index caf800f80..e2428f1f7 100644 --- a/mod/chat.php +++ b/mod/chat.php @@ -207,7 +207,7 @@ function chat_content(&$a) { '$header' => t('New Chatroom'), '$name' => array('room_name',t('Chatroom Name'),'', ''), '$permissions' => t('Permissions'), - '$acl' => populate_acl($channel_acl), + '$acl' => populate_acl($channel_acl,false), '$submit' => t('Submit') )); return $o; diff --git a/mod/display.php b/mod/display.php index 4c30ae554..15b76e63d 100644 --- a/mod/display.php +++ b/mod/display.php @@ -55,7 +55,7 @@ function display_content(&$a, $update = 0, $load = false) { 'nickname' => $channel['channel_address'], 'lockstate' => (($group || $cid || $channel['channel_allow_cid'] || $channel['channel_allow_gid'] || $channel['channel_deny_cid'] || $channel['channel_deny_gid']) ? 'lock' : 'unlock'), - 'acl' => populate_acl($channel_acl, false), + 'acl' => populate_acl($channel_acl), 'bang' => '', 'visitor' => true, 'profile_uid' => local_user(), diff --git a/mod/editwebpage.php b/mod/editwebpage.php index deaf9ae57..b8b7a465c 100644 --- a/mod/editwebpage.php +++ b/mod/editwebpage.php @@ -157,7 +157,7 @@ function editwebpage_content(&$a) { '$baseurl' => $a->get_baseurl(), '$defloc' => $itm[0]['location'], '$visitor' => ($is_owner) ? true : false, - '$acl' => populate_acl($itm[0]), + '$acl' => populate_acl($itm[0],false), '$showacl' => ($is_owner) ? true : false, '$public' => t('Public post'), '$jotnets' => $jotnets, diff --git a/mod/events.php b/mod/events.php index e7b5e35a9..911b6c891 100755 --- a/mod/events.php +++ b/mod/events.php @@ -488,7 +488,7 @@ function events_content(&$a) { '$t_orig' => $t_orig, '$sh_text' => t('Share this event'), '$sh_checked' => $sh_checked, - '$acl' => (($orig_event['event_xchan']) ? '' : populate_acl(((x($orig_event)) ? $orig_event : $perm_defaults))), + '$acl' => (($orig_event['event_xchan']) ? '' : populate_acl(((x($orig_event)) ? $orig_event : $perm_defaults),false)), '$submit' => t('Submit') )); diff --git a/mod/filestorage.php b/mod/filestorage.php index ed7164070..bcf798e7b 100644 --- a/mod/filestorage.php +++ b/mod/filestorage.php @@ -111,7 +111,7 @@ function filestorage_content(&$a) { $cloudpath = get_cloudpath($f) . (($f['flags'] & ATTACH_FLAG_DIR) ? '?f=&davguest=1' : ''); - $aclselect_e = populate_acl($f); + $aclselect_e = populate_acl($f,false); $is_a_dir = (($f['flags'] & ATTACH_FLAG_DIR) ? true : false); $lockstate = (($f['allow_cid'] || $f['allow_gid'] || $f['deny_cid'] || $f['deny_gid']) ? 'lock' : 'unlock'); diff --git a/mod/mitem.php b/mod/mitem.php index e0aa1b87a..3240bb68b 100644 --- a/mod/mitem.php +++ b/mod/mitem.php @@ -132,7 +132,7 @@ function mitem_content(&$a) { '$menu_id' => $a->data['menu']['menu_id'], '$permissions' => t('Menu Item Permissions'), '$permdesc' => t("\x28click to open/close\x29"), - '$aclselect' => populate_acl($perm_defaults), + '$aclselect' => populate_acl($perm_defaults,false), '$mitem_desc' => array('mitem_desc', t('Link text'), '', '','*'), '$mitem_link' => array('mitem_link', t('URL of link'), '', '', '*'), '$usezid' => array('usezid', t('Use Red magic-auth if available'), true, ''), @@ -175,7 +175,7 @@ function mitem_content(&$a) { '$menu_id' => $a->data['menu']['menu_id'], '$permissions' => t('Menu Item Permissions'), '$permdesc' => t("\x28click to open/close\x29"), - '$aclselect' => populate_acl($mitem), + '$aclselect' => populate_acl($mitem,false), '$mitem_id' => intval(argv(2)), '$mitem_desc' => array('mitem_desc', t('Link text'), $mitem['mitem_desc'], '','*'), '$mitem_link' => array('mitem_link', t('URL of link'), $mitem['mitem_link'], '', '*'), diff --git a/mod/photos.php b/mod/photos.php index 2740f91f9..a3ca933b1 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -591,7 +591,7 @@ function photos_content(&$a) { } $albumselect_e = $albumselect; - $aclselect_e = (($_is_owner) ? populate_acl($channel_acl) : ''); + $aclselect_e = (($_is_owner) ? populate_acl($channel_acl,false) : ''); $tpl = get_markup_template('photos_upload.tpl'); $o .= replace_macros($tpl,array( diff --git a/mod/settings.php b/mod/settings.php index e1ae0b8ec..bdf30bae2 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -957,7 +957,7 @@ function settings_content(&$a) { '$maxreq' => array('maxreq', t('Maximum Friend Requests/Day:'), intval($channel['channel_max_friend_req']) , t('May reduce spam activity')), '$permissions' => t('Default Post Permissions'), '$permdesc' => t("\x28click to open/close\x29"), - '$aclselect' => populate_acl($perm_defaults), + '$aclselect' => populate_acl($perm_defaults,false), '$suggestme' => $suggestme, '$group_select' => $group_select, diff --git a/mod/webpages.php b/mod/webpages.php index dea034357..e7c4b40ad 100644 --- a/mod/webpages.php +++ b/mod/webpages.php @@ -84,7 +84,7 @@ function webpages_content(&$a) { 'nickname' => $a->profile['channel_address'], 'lockstate' => (($group || $cid || $channel['channel_allow_cid'] || $channel['channel_allow_gid'] || $channel['channel_deny_cid'] || $channel['channel_deny_gid']) ? 'lock' : 'unlock'), 'bang' => (($group || $cid) ? '!' : ''), - 'acl' => ((local_user() && local_user() == $owner) ? populate_acl($channel_acl) : ''), + 'acl' => ((local_user() && local_user() == $owner) ? populate_acl($channel_acl,false) : ''), 'visitor' => true, 'profile_uid' => intval($owner), 'mimetype' => $mimetype, |