- if(typeof window.AjaxUpload != "undefined") {
+ if (typeof window.AjaxUpload != "undefined") {
var uploader = new window.AjaxUpload(
window.imageUploadButton,
- { action: 'wall_upload/'+window.nickname+'?nomce=1',
+ { action: 'wall_upload/' + window.nickname,
name: 'userfile',
onSubmit: function(file,ext) { $('#profile-rotator').show(); },
onComplete: function(file,response) {
}
);
- if($('#wall-file-upload').length) {
+ if ($('#wall-file-upload').length) {
var file_uploader = new window.AjaxUpload(
'wall-file-upload',
- { action: 'wall_attach/'+window.nickname+'?nomce=1',
+ { action: 'wall_attach/' + window.nickname,
name: 'userfile',
onSubmit: function(file,ext) { $('#profile-rotator').show(); },
onComplete: function(file,response) {
function showEvent(eventid) {
-/* $.get(
- baseurl + window.eventModuleUrl + '/?id=' + eventid,
- function(data){
- $.colorbox({html:data});
- }
- );*/
}
-
-
/*
- * TinyMCE/Editor
+ * Editor
*/
-
- var editor=false;
+ var editor = false;
var textlen = 0;
- var plaintext = 'none';//window.editSelect;
- //var ispublic = window.isPublic;
-
- function initEditor(cb) {
- if (editor==false) {
- if (plaintext == 'none') {
- $("#profile-jot-text").css({ 'height': 200, 'color': '#000' });
- $("#profile-jot-text").editor_autocomplete(baseurl+"/acl");
- editor = true;
-
- $("a#jot-perms-icon, a#settings-default-perms-menu").click(function () {
- var parent = $("#profile-jot-acl-wrapper").parent();
- if (parent.css('display') == 'none') {
- parent.show();
- } else {
- parent.hide();
- }
- return false;
- });
- $(".jothidden").show();
- if (typeof cb!="undefined") {
- cb();
+ function initEditor(callback){
+ if (editor == false) {
+ $("#profile-jot-text").css({ 'height': 200, 'color': '#000' });
+ $("#profile-jot-text").editor_autocomplete(baseurl+"/acl");
+ $("a#jot-perms-icon, a#settings-default-perms-menu").click(function () {
+ var parent = $("#profile-jot-acl-wrapper").parent();
+ if (parent.css('display') == 'none') {
+ parent.show();
+ } else {
+ parent.hide();
}
- return;
- }
- } else {
- if (typeof cb!="undefined") cb();
+ return false;
+ });
+ $(".jothidden").show();
+
+ editor = true;
+ }
+ if (typeof callback != "undefined") {
+ callback();
}
}
$(obj).val("");
}
- function insertFormatting(BBcode,id) {
-/*function showHideCommentBox(id) {
- if( $('#comment-edit-form-' + id).is(':visible')) {
- $('#comment-edit-form-' + id).hide();
- }
- else {
- $('#comment-edit-form-' + id).show();
- }
-}*/
-
-
-function insertFormatting(comment,BBcode,id) {
-
++function insertFormatting(BBcode, id) {
var tmpStr = $("#comment-edit-text-" + id).val();
- if(tmpStr == comment) {
- tmpStr = "";
+ if (tmpStr == "") {
$("#comment-edit-text-" + id).addClass("comment-edit-text-full");
$("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
openMenu("comment-edit-submit-wrapper-" + id);