$j(document).ready(function() {
- /* enable tinymce on focus and click */
- $j("#profile-jot-text").focus(enableOnUser);
- $j("#profile-jot-text").click(enableOnUser);
+ /* enable tinymce on focus and click */
+ $j("#profile-jot-text").focus(enableOnUser);
+ $j("#profile-jot-text").click(enableOnUser);
if(typeof window.AjaxUpload != "undefined") {
switch(window.ajaxType) {
case 'jot-header':
var uploader = new window.AjaxUpload(
'wall-image-upload',
- { action: 'wall_upload/'+window.nickname,
+ { action: 'wall_upload/'+window.nickname+'?nomce=1',
name: 'userfile',
onSubmit: function(file,ext) { $j('#profile-rotator').show(); },
onComplete: function(file,response) {
var file_uploader = new window.AjaxUpload(
'wall-file-upload',
- { action: 'wall_attach/'+window.nickname,
+ { action: 'wall_attach/'+window.nickname+'?nomce=1',
name: 'userfile',
onSubmit: function(file,ext) { $j('#profile-rotator').show(); },
onComplete: function(file,response) {
case 'msg-header':
var uploader = new window.AjaxUpload(
'prvmail-upload',
- { action: 'wall_upload/' + window.nickname,
+ { action: 'wall_upload/'+window.nickname+'?nomce=1',
name: 'userfile',
onSubmit: function(file,ext) { $j('#profile-rotator').show(); },
onComplete: function(file,response) {
}
}
- if(typeof acl=="undefined"){
+ if(typeof window.aclInit !="undefined" && typeof acl=="undefined"){
acl = new ACL(
baseurl+"/acl",
[ window.allowCID,window.allowGID,window.denyCID,window.denyGID ]
$j('#drop-' + id).removeClass('icon');$j('#drop-' + id).removeClass('drophide'); $j('#drop-' + id).addClass('iconspacer');}
);*/
+ if(window.autoCompleteType == "display-head") {
+ //$j(".comment-edit-wrapper textarea").contact_autocomplete(baseurl+"/acl");
+ // make auto-complete work in more places
+ //$j(".wall-item-comment-wrapper textarea").contact_autocomplete(baseurl+"/acl");
+ $j(".comment-wwedit-wrapper textarea").contact_autocomplete(baseurl+"/acl");
+ }
+
if(window.aclType == "event_head") {
$j('#events-calendar').fullCalendar({
events: baseurl + '/events/json/',
textarea.focus();
selected = document.selection.createRange();
if (BBcode == "url"){
- selected.text = "["+BBcode+"]" + "http://" + selected.text + "[/"+BBcode+"]";
+ selected.text = "["+BBcode+"=http://]" + selected.text + "[/"+BBcode+"]";
} else
selected.text = "["+BBcode+"]" + selected.text + "[/"+BBcode+"]";
} else if (textarea.selectionStart || textarea.selectionStart == "0") {
var start = textarea.selectionStart;
var end = textarea.selectionEnd;
if (BBcode == "url"){
- textarea.value = textarea.value.substring(0, start) + "["+BBcode+"]" + "http://" + textarea.value.substring(start, end) + "[/"+BBcode+"]" + textarea.value.substring(end, textarea.value.length);
+ textarea.value = textarea.value.substring(0, start) + "["+BBcode+"=http://]" + textarea.value.substring(start, end) + "[/"+BBcode+"]" + textarea.value.substring(end, textarea.value.length);
} else
textarea.value = textarea.value.substring(0, start) + "["+BBcode+"]" + textarea.value.substring(start, end) + "[/"+BBcode+"]" + textarea.value.substring(end, textarea.value.length);
}
$j(obj).val("");
}
-function showHideComments(id) {
- if( $j("#collapsed-comments-" + id).is(":visible")) {
- $j("#collapsed-comments-" + id).hide();
- $j("#hide-comments-" + id).html(window.showMore);
+/*function showHideCommentBox(id) {
+ if( $j('#comment-edit-form-' + id).is(':visible')) {
+ $j('#comment-edit-form-' + id).hide();
}
else {
- $j("#collapsed-comments-" + id).show();
- $j("#hide-comments-" + id).html(window.showFewer);
+ $j('#comment-edit-form-' + id).show();
}
-}
+}*/
/*function deleteCheckedItems() {