Merge pull request #819 from pafcu/acl
Fix initEditor on non-wall pages
This commit is contained in:
commit
fc72762f52
@ -43,7 +43,8 @@ function replace(item) {
|
|||||||
* jQuery plugin 'contact_autocomplete'
|
* jQuery plugin 'contact_autocomplete'
|
||||||
*/
|
*/
|
||||||
(function( $ ){
|
(function( $ ){
|
||||||
$.fn.contact_autocomplete = function(backend_url, extra_channels = null) {
|
$.fn.contact_autocomplete = function(backend_url, extra_channels) {
|
||||||
|
if (typeof extra_channels === 'undefined') extra_channels = false;
|
||||||
|
|
||||||
// Autocomplete contacts
|
// Autocomplete contacts
|
||||||
contacts = {
|
contacts = {
|
||||||
|
@ -10,7 +10,10 @@ function initEditor(cb){
|
|||||||
if(plaintext == 'none') {
|
if(plaintext == 'none') {
|
||||||
$("#profile-jot-text-loading").spin(false).hide();
|
$("#profile-jot-text-loading").spin(false).hide();
|
||||||
$("#profile-jot-text").css({ 'height': 200, 'color': '#000' });
|
$("#profile-jot-text").css({ 'height': 200, 'color': '#000' });
|
||||||
$("#profile-jot-text").contact_autocomplete(baseurl+"/acl",[channelId]); // Also gives suggestions from current channel's connections
|
if(typeof channelId === 'undefined')
|
||||||
|
$("#profile-jot-text").contact_autocomplete(baseurl+"/acl");
|
||||||
|
else
|
||||||
|
$("#profile-jot-text").contact_autocomplete(baseurl+"/acl",[channelId]); // Also gives suggestions from current channel's connections
|
||||||
editor = true;
|
editor = true;
|
||||||
$("a#jot-perms-icon").colorbox({
|
$("a#jot-perms-icon").colorbox({
|
||||||
'inline' : true,
|
'inline' : true,
|
||||||
|
Reference in New Issue
Block a user