").append($j("#nav-notifications-see-all").clone()).html());var notifications_mark=unescape($j("
')})}
\ No newline at end of file
+function openClose(listID){listID="#"+listID.replace(/:/g,"\\:");listID=listID.replace(/\./g,"\\.");listID=listID.replace(/@/g,"\\@");if($j(listID).is(":visible")){$j(listID).hide();$j(listID+"-wrapper").show()}else{$j(listID).show();$j(listID+"-wrapper").hide()}}function openMenu(theID){document.getElementById(theID).style.display="block"}function closeMenu(theID){document.getElementById(theID).style.display="none"}var src=null;var prev=null;var livetime=null;var msie=false;var stopped=false;var totStopped=false;var timer=null;var pr=0;var liking=0;var in_progress=false;var langSelect=false;var commentBusy=false;var last_popup_menu=null;var last_popup_button=null;$j(function(){$j.ajaxSetup({cache:false});msie=$j.browser.msie;collapseHeight();$j(".onoff input").each(function(){val=$j(this).val();id=$j(this).attr("id");$j("#"+id+"_onoff ."+(val==0?"on":"off")).addClass("hidden")});$j(".onoff > a").click(function(event){event.preventDefault();var input=$j(this).siblings("input");var val=1-input.val();var id=input.attr("id");$j("#"+id+"_onoff ."+(val==0?"on":"off")).addClass("hidden");$j("#"+id+"_onoff ."+(val==1?"on":"off")).removeClass("hidden");input.val(val)});function close_last_popup_menu(e){if(last_popup_menu){if("#"+last_popup_menu.attr("id")!==$j(e.target).attr("rel")){last_popup_menu.hide();last_popup_button.removeClass("selected");last_popup_menu=null;last_popup_button=null}}}$j("a[rel^=#]").click(function(e){close_last_popup_menu(e);menu=$j($j(this).attr("rel"));e.preventDefault();e.stopPropagation();if(menu.attr("popup")=="false")return false;$j(this).parent().toggleClass("selected");menu.slideToggle("fast");if(menu.css("display")=="none"){last_popup_menu=null;last_popup_button=null}else{last_popup_menu=menu;last_popup_button=$j(this).parent()}return false});$j("html").click(function(e){close_last_popup_menu(e)});$j("a.popupbox").colorbox({inline:true,transition:"elastic"});var notifications_tpl=unescape($j("#nav-notifications-template[rel=template]").html());var notifications_all=unescape($j("
").append($j("#nav-notifications-see-all").clone()).html());var notifications_mark=unescape($j("
").append($j("#nav-notifications-mark-all").clone()).html());var notifications_empty=unescape($j("#nav-notifications-menu").html());$j("nav").bind("nav-update",function(e,data){var invalid=$j(data).find("invalid").text();if(invalid==1){window.location.href=window.location.href}var net=$j(data).find("net").text();if(net==0){net="";$j("#net-update").removeClass("show")}else{$j("#net-update").addClass("show")}$j("#net-update").html(net);var home=$j(data).find("home").text();if(home==0){home="";$j("#home-update").removeClass("show")}else{$j("#home-update").addClass("show")}$j("#home-update").html(home);var intro=$j(data).find("intro").text();if(intro==0){intro="";$j("#intro-update").removeClass("show")}else{$j("#intro-update").addClass("show")}$j("#intro-update").html(intro);var mail=$j(data).find("mail").text();if(mail==0){mail="";$j("#mail-update").removeClass("show")}else{$j("#mail-update").addClass("show")}$j("#mail-update").html(mail);var intro=$j(data).find("intro").text();if(intro==0){intro="";$j("#intro-update-li").removeClass("show")}else{$j("#intro-update-li").addClass("show")}$j("#intro-update-li").html(intro);var mail=$j(data).find("mail").text();if(mail==0){mail="";$j("#mail-update-li").removeClass("show")}else{$j("#mail-update-li").addClass("show")}$j("#mail-update-li").html(mail);var eNotif=$j(data).find("notif");if(eNotif.children("note").length==0){$j("#nav-notifications-menu").html(notifications_empty)}else{nnm=$j("#nav-notifications-menu");nnm.html(notifications_all+notifications_mark);eNotif.children("note").each(function(){e=$j(this);text=e.text().format("
"+e.attr("name")+"");html=notifications_tpl.format(e.attr("href"),e.attr("photo"),text,e.attr("date"),e.attr("seen"));nnm.append(html)});$j("img[data-src]",nnm).each(function(i,el){$j(el).attr("src",$j(el).data("src"))})}notif=eNotif.attr("count");if(notif>0){$j("#nav-notifications-linkmenu").addClass("on")}else{$j("#nav-notifications-linkmenu").removeClass("on")}if(notif==0){notif="";$j("#notify-update").removeClass("show")}else{$j("#notify-update").addClass("show")}$j("#notify-update").html(notif);var eSysmsg=$j(data).find("sysmsgs");eSysmsg.children("notice").each(function(){text=$j(this).text();$j.jGrowl(text,{sticky:false,theme:"notice",life:3e3})});eSysmsg.children("info").each(function(){text=$j(this).text();$j.jGrowl(text,{sticky:false,theme:"info",life:1e3})})});NavUpdate();$j(document).keydown(function(event){if(event.keyCode=="8"){var target=event.target||event.srcElement;if(!/input|textarea/i.test(target.nodeName)){return false}}if(event.keyCode=="19"||event.ctrlKey&&event.which=="32"){event.preventDefault();if(stopped==false){stopped=true;if(event.ctrlKey){totStopped=true}$j("#pause").html('
')}else{unpause()}}else{if(!totStopped){unpause()}}})});function NavUpdate(){if(!stopped){var pingCmd="ping"+(localUser!=0?"?f=&uid="+localUser:"");$j.get(pingCmd,function(data){$j(data).find("result").each(function(){$j("nav").trigger("nav-update",this);if($j("#live-network").length){src="network";liveUpdate()}if($j("#live-profile").length){src="profile";liveUpdate()}if($j("#live-community").length){src="community";liveUpdate()}if($j("#live-notes").length){src="notes";liveUpdate()}if($j("#live-display").length){src="display";liveUpdate()}if($j("#live-photos").length){if(liking){liking=0;window.location.href=window.location.href}}})})}timer=setTimeout(NavUpdate,updateInterval)}function liveUpdate(){if(src==null||stopped||typeof profile_uid=="undefined"||!profile_uid){$j(".like-rotator").hide();return}if($j(".comment-edit-text-full").length||in_progress){if(livetime){clearTimeout(livetime)}livetime=setTimeout(liveUpdate,1e4);return}if(livetime!=null)livetime=null;prev="live-"+src;in_progress=true;var udargs=netargs.length?"/"+netargs:"";var update_url="update_"+src+udargs+"&p="+profile_uid+"&page="+profile_page+"&msie="+(msie?1:0);$j.get(update_url,function(data){in_progress=false;$j(".toplevel_item",data).each(function(){var ident=$j(this).attr("id");if($j("#"+ident).length==0&&profile_page==1){$j("img",this).each(function(){$j(this).attr("src",$j(this).attr("dst"))});$j("#"+prev).after($j(this))}else{var id=$j(".hide-comments-total",this).attr("id");if(typeof id!="undefined"){id=id.split("-")[3];var commentsOpen=$j("#collapsed-comments-"+id).is(":visible")}$j("img",this).each(function(){$j(this).attr("src",$j(this).attr("dst"))});$j("html").height($j("html").height());$j("#"+ident).replaceWith($j(this));if(typeof id!="undefined"){if(commentsOpen)showHideComments(id)}$j("html").height("auto")}$j("#"+ident+" .wall-item-body a img").each(function(){var aElem=$j(this).parent();var imgHref=aElem.attr("href");if(imgHref.match(/\/photo\/[a-fA-F0-9]+(-[0-9]\.[\w]+?)?$/)){var cBoxClass=$j(this).closest(".wall-item-body").attr("id")+"-lightbox";$j(this).addClass(cBoxClass);aElem.colorbox({maxHeight:"90%",photo:true,rel:cBoxClass})}});prev=ident});$j(".like-rotator").hide();if(commentBusy){commentBusy=false;$j("body").css("cursor","auto")}$j(".comment-edit-form textarea").contact_autocomplete(baseurl+"/acl");collapseHeight()})}function collapseHeight(elems){var elemName=".wall-item-body:not(.divmore)";if(typeof elems!="undefined"){elemName=elems+" "+elemName}$j(elemName).each(function(){if($j(this).height()>450){$j("html").height($j("html").height());$j(this).divgrow({initialHeight:400,showBrackets:false,speed:0});$j(this).addClass("divmore");$j("html").height("auto")}})}function dolike(ident,verb){unpause();$j("#like-rotator-"+ident.toString()).show();$j.get("like/"+ident.toString()+"?verb="+verb,NavUpdate);liking=1}function dostar(ident){ident=ident.toString();$j.get("starred/"+ident,function(data){if(data.match(/1/)){$j("#starred-"+ident).addClass("starred");$j("#starred-"+ident).removeClass("unstarred");$j("#star-"+ident).addClass("hidden");$j("#unstar-"+ident).removeClass("hidden")}else{$j("#starred-"+ident).addClass("unstarred");$j("#starred-"+ident).removeClass("starred");$j("#star-"+ident).removeClass("hidden");$j("#unstar-"+ident).addClass("hidden")}})}function getPosition(e){var cursor={x:0,y:0};if(e.pageX||e.pageY){cursor.x=e.pageX;cursor.y=e.pageY}else{if(e.clientX||e.clientY){cursor.x=e.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft)-document.documentElement.clientLeft;cursor.y=e.clientY+(document.documentElement.scrollTop||document.body.scrollTop)-document.documentElement.clientTop}else{if(e.x||e.y){cursor.x=e.x;cursor.y=e.y}}}return cursor}var lockvisible=false;function lockview(event,id){event=event||window.event;cursor=getPosition(event);if(lockvisible){lockviewhide()}else{lockvisible=true;$j.get("lockview/"+id,function(data){$j("#panel").html(data);$j("#panel").css({left:cursor.x+5,top:cursor.y+5});$j("#panel").show()})}}function lockviewhide(){lockvisible=false;$j("#panel").hide()}function post_comment(id){unpause();commentBusy=true;$j("body").css("cursor","wait");$j("#comment-preview-inp-"+id).val("0");$j.post("item",$j("#comment-edit-form-"+id).serialize(),function(data){if(data.success){$j("#comment-edit-wrapper-"+id).hide();$j("#comment-edit-text-"+id).val("");var tarea=document.getElementById("comment-edit-text-"+id);if(tarea)commentClose(tarea,id);if(timer)clearTimeout(timer);timer=setTimeout(NavUpdate,10)}if(data.reload){window.location.href=data.reload}},"json");return false}function preview_comment(id){$j("#comment-preview-inp-"+id).val("1");$j("#comment-edit-preview-"+id).show();$j.post("item",$j("#comment-edit-form-"+id).serialize(),function(data){if(data.preview){$j("#comment-edit-preview-"+id).html(data.preview);$j("#comment-edit-preview-"+id+" a").click(function(){return false})}},"json");return true}function showHideComments(id){if($j("#collapsed-comments-"+id).is(":visible")){$j("#collapsed-comments-"+id).hide();$j("#hide-comments-"+id).html(window.showMore)}else{$j("#collapsed-comments-"+id).show();$j("#hide-comments-"+id).html(window.showFewer);collapseHeight("#collapsed-comments-"+id)}}function preview_post(){$j("#jot-preview").val("1");$j("#jot-preview-content").show();tinyMCE.triggerSave();$j.post("item",$j("#profile-jot-form").serialize(),function(data){if(data.preview){$j("#jot-preview-content").html(data.preview);$j("#jot-preview-content"+" a").click(function(){return false})}},"json");$j("#jot-preview").val("0");return true}function unpause(){totStopped=false;stopped=false;$j("#pause").html("")}function bin2hex(s){var v,i,f=0,a=[];s+="";f=s.length;for(i=0;i
'+data.desc+''+data.version+'
'+data.credits+'
')})}
\ No newline at end of file
diff --git a/view/theme/frost/js/theme.js b/view/theme/frost/js/theme.js
index f46192c9b..19c224aa3 100644
--- a/view/theme/frost/js/theme.js
+++ b/view/theme/frost/js/theme.js
@@ -17,18 +17,10 @@ $j(document).ready(function() {
});*/
- if(typeof window.aclInit !="undefined" && typeof acl=="undefined"){
- acl = new ACL(
- baseurl+"/acl",
- [ window.allowCID,window.allowGID,window.denyCID,window.denyGID ]
- );
- }
-
/* enable tinymce on focus and click */
$j("#profile-jot-text").focus(enableOnUser);
$j("#profile-jot-text").click(enableOnUser);
-
$j('.nav-menu-list, .nav-menu-icon').hover(function() {
showNavMenu($j(this).attr('point'));
}, function() {
@@ -78,11 +70,81 @@ $j(document).ready(function() {
return false;
});*/
- 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");
+ $j('#event-share-checkbox').change(function() {
+
+ if ($j('#event-share-checkbox').is(':checked')) {
+ $j('#acl-wrapper').show();
+ }
+ else {
+ $j('#acl-wrapper').hide();
+ }
+ }).trigger('change');
+
+// For event_end.tpl
+/* $j('#contact_allow, #contact_deny, #group_allow, #group_deny').change(function() {
+ var selstr;
+ $j('#contact_allow option:selected, #contact_deny option:selected, #group_allow option:selected, #group_deny option:selected').each( function() {
+ selstr = $j(this).text();
+ $j('#jot-public').hide();
+ });
+ if(selstr == null) {
+ $j('#jot-public').show();
+ }
+
+ }).trigger('change');*/
+
+
+ if(typeof window.AjaxUpload != "undefined") {
+ var uploader = new window.AjaxUpload(
+ window.imageUploadButton,
+ { action: 'wall_upload/'+window.nickname,
+ name: 'userfile',
+ onSubmit: function(file,ext) { $j('#profile-rotator').show(); },
+ onComplete: function(file,response) {
+ addeditortext(window.jotId, response);
+ $j('#profile-rotator').hide();
+ }
+ }
+ );
+
+ if($j('#wall-file-upload').length) {
+ var file_uploader = new window.AjaxUpload(
+ 'wall-file-upload',
+ { action: 'wall_attach/'+window.nickname,
+ name: 'userfile',
+ onSubmit: function(file,ext) { $j('#profile-rotator').show(); },
+ onComplete: function(file,response) {
+ addeditortext(window.jotId, response);
+ $j('#profile-rotator').hide();
+ }
+ }
+ );
+ }
+ }
+
+
+ if(typeof window.aclInit !="undefined" && typeof acl=="undefined"){
+ acl = new ACL(
+ baseurl+"/acl",
+ [ window.allowCID,window.allowGID,window.denyCID,window.denyGID ]
+ );
+ }
+
+
+ if(window.aclType == "settings-head" || window.aclType == "photos_head" || window.aclType == "event_head") {
+ $j('#contact_allow, #contact_deny, #group_allow, #group_deny').change(function() {
+ var selstr;
+ $j('#contact_allow option:selected, #contact_deny option:selected, #group_allow option:selected, #group_deny option:selected').each( function() {
+ selstr = $j(this).text();
+ $j('#jot-perms-icon').removeClass('unlock').addClass('lock');
+ $j('#jot-public').hide();
+ });
+ if(selstr == null) {
+ $j('#jot-perms-icon').removeClass('lock').addClass('unlock');
+ $j('#jot-public').show();
+ }
+
+ }).trigger('change');
}
if(window.aclType == "event_head") {
@@ -144,45 +206,6 @@ $j(document).ready(function() {
if (hash.length==2 && hash[0]=="#link") showEvent(hash[1]);
}
- $j('#event-share-checkbox').change(function() {
-
- if ($j('#event-share-checkbox').is(':checked')) {
- $j('#acl-wrapper').show();
- }
- else {
- $j('#acl-wrapper').hide();
- }
- }).trigger('change');
-
-
- if(window.aclType == "settings-head" || window.aclType == "photos_head" || window.aclType == "event_head") {
- $j('#contact_allow, #contact_deny, #group_allow, #group_deny').change(function() {
- var selstr;
- $j('#contact_allow option:selected, #contact_deny option:selected, #group_allow option:selected, #group_deny option:selected').each( function() {
- selstr = $j(this).text();
- $j('#jot-perms-icon').removeClass('unlock').addClass('lock');
- $j('#jot-public').hide();
- });
- if(selstr == null) {
- $j('#jot-perms-icon').removeClass('lock').addClass('unlock');
- $j('#jot-public').show();
- }
-
- }).trigger('change');
- }
-// For event_end.tpl
-/* $j('#contact_allow, #contact_deny, #group_allow, #group_deny').change(function() {
- var selstr;
- $j('#contact_allow option:selected, #contact_deny option:selected, #group_allow option:selected, #group_deny option:selected').each( function() {
- selstr = $j(this).text();
- $j('#jot-public').hide();
- });
- if(selstr == null) {
- $j('#jot-public').show();
- }
-
- }).trigger('change');*/
-
switch(window.autocompleteType) {
case 'msg-header':
@@ -203,55 +226,54 @@ $j(document).ready(function() {
});
a.setOptions({ params: { type: 'a' }});
break;
+ case 'display-head':
+ $j(".comment-wwedit-wrapper textarea").contact_autocomplete(baseurl+"/acl");
+ break;
default:
break;
}
+/* 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(typeof window.AjaxUpload != "undefined") {
- switch(window.ajaxType) {
- case 'jot-header':
- var uploader = new window.AjaxUpload(
- 'wall-image-upload',
- { action: 'wall_upload/'+window.nickname,
- name: 'userfile',
- onSubmit: function(file,ext) { $j('#profile-rotator').show(); },
- onComplete: function(file,response) {
- addeditortext(response);
- $j('#profile-rotator').hide();
- }
- }
- );
+ // Add Colorbox for viewing Network page images
+ //var cBoxClasses = new Array();
+ $j(".wall-item-body a img").each(function(){
+ var aElem = $j(this).parent();
+ var imgHref = aElem.attr("href");
- var file_uploader = new window.AjaxUpload(
- 'wall-file-upload',
- { action: 'wall_attach/'+window.nickname,
- name: 'userfile',
- onSubmit: function(file,ext) { $j('#profile-rotator').show(); },
- onComplete: function(file,response) {
- addeditortext(response);
- $j('#profile-rotator').hide();
- }
- }
- );
- break;
- case 'msg-header':
- var uploader = new window.AjaxUpload(
- 'prvmail-upload',
- { action: 'wall_upload/' + window.nickname,
- name: 'userfile',
- onSubmit: function(file,ext) { $j('#profile-rotator').show(); },
- onComplete: function(file,response) {
- tinyMCE.execCommand('mceInsertRawHTML',false,response);
- $j('#profile-rotator').hide();
- }
- }
- );
- break;
- default:
- break;
+ // We need to make sure we only put a Colorbox on links to Friendica images
+ // We'll try to do this by looking for links of the form
+ // .../photo/ab803d8eg08daf85023adfec08 (with nothing more following), in hopes
+ // that that will be unique enough
+ if(imgHref.match(/\/photo\/[a-fA-F0-9]+(-[0-9]\.[\w]+?)?$/)) {
+
+ // Add a unique class to all the images of a certain post, to allow scrolling through
+ var cBoxClass = $j(this).closest(".wall-item-body").attr("id") + "-lightbox";
+ $j(this).addClass(cBoxClass);
+
+// if( $j.inArray(cBoxClass, cBoxClasses) < 0 ) {
+// cBoxClasses.push(cBoxClass);
+// }
+
+ aElem.colorbox({
+ maxHeight: '90%',
+ photo: true, // Colorbox doesn't recognize a URL that don't end in .jpg, etc. as a photo
+ rel: cBoxClass //$j(this).attr("class").match(/wall-item-body-[\d]+-lightbox/)[0]
+ });
}
- }
+ });
+ /*$j.each(cBoxClasses, function(){
+ $j('.'+this).colorbox({
+ maxHeight: '90%',
+ photo: true,
+ rel: this
+ });
+ });*/
});
@@ -274,7 +296,7 @@ $j(function(){
$.colorbox({
width: 800,
height: '90%',
- href: "$baseurl/admin/themes/" + $j("#id_theme :selected").val(),
+ href: baseurl + "/admin/themes/" + $("#id_theme :selected").val(),
onComplete: function(){
$j("div#fancybox-content form").submit(function(e){
var url = $j(this).attr('action');
@@ -321,74 +343,12 @@ if(typeof window.photoEdit != 'undefined') {
});
}
-switch(window.ajaxType) {
- case 'jot-header':
- function jotGetLink() {
- reply = prompt(window.linkURL);
- if(reply && reply.length) {
- reply = bin2hex(reply);
- $j('#profile-rotator').show();
- $j.get('parse_url?binurl=' + reply, function(data) {
- addeditortext(data);
- $j('#profile-rotator').hide();
- });
- }
- }
-
- function linkdrop(event) {
- var reply = event.dataTransfer.getData("text/uri-list");
- event.target.textContent = reply;
- event.preventDefault();
- if(reply && reply.length) {
- reply = bin2hex(reply);
- $j('#profile-rotator').show();
- $j.get('parse_url?binurl=' + reply, function(data) {
- if (!editor) $j("#profile-jot-text").val("");
- initEditor(function(){
- addeditortext(data);
- $j('#profile-rotator').hide();
- });
- });
- }
- }
- break;
- case 'msg-header':
- case 'wallmsg-header':
- function jotGetLink() {
- reply = prompt(window.linkURL);
- if(reply && reply.length) {
- $j('#profile-rotator').show();
- $j.get('parse_url?url=' + reply, function(data) {
- tinyMCE.execCommand('mceInsertRawHTML',false,data);
- $j('#profile-rotator').hide();
- });
- }
- }
-
- function linkdrop(event) {
- var reply = event.dataTransfer.getData("text/uri-list");
- event.target.textContent = reply;
- event.preventDefault();
- if(reply && reply.length) {
- $j('#profile-rotator').show();
- $j.get('parse_url?url=' + reply, function(data) {
- tinyMCE.execCommand('mceInsertRawHTML',false,data);
- $j('#profile-rotator').hide();
- });
- }
- }
-
- break;
- default:
- break;
-}
-
-
function showEvent(eventid) {
$j.get(
baseurl + '/events/?id='+eventid,
function(data){
$j.colorbox({html:data});
+ $j.colorbox.resize();
}
);
}
@@ -498,16 +458,472 @@ function hideNavMenu(menuID) {
+/*
+ * TinyMCE/Editor
+ */
+
+function InitMCEEditor(editorData) {
+ var tinyMCEInitConfig = {
+ theme : "advanced",
+ //mode : // SPECIFIC
+ //editor_selector: // SPECIFIC
+ //elements: // SPECIFIC
+ plugins : "bbcode,paste,autoresize,inlinepopups",
+ theme_advanced_buttons1 : "bold,italic,underline,undo,redo,link,unlink,image,forecolor,formatselect,code",
+ theme_advanced_buttons2 : "",
+ theme_advanced_buttons3 : "",
+ theme_advanced_toolbar_location : "top",
+ theme_advanced_toolbar_align : "center",
+ theme_advanced_blockformats : "blockquote,code",
+ gecko_spellcheck : true,
+ paste_text_sticky : true, // COUPLED WITH paste PLUGIN
+ entity_encoding : "raw",
+ add_unload_trigger : false,
+ remove_linebreaks : false,
+ //force_p_newlines : false,
+ //force_br_newlines : true,
+ forced_root_block : 'div',
+ //convert_urls: false, //SPECIFIC?
+ content_css: baseurl + "/view/custom_tinymce.css",
+ theme_advanced_path : false,
+ file_browser_callback : "fcFileBrowser",
+ //setup : // SPECIFIC
+ };
+
+ if(window.editSelect != 'none') {
+ $j.extend(tinyMCEInitConfig, editorData);
+ tinyMCE.init(tinyMCEInitConfig);
+ }
+ else if(typeof editorData.plaintextFn == 'function') {
+ (editorData.plaintextFn)();
+ }
+}
+
+var editor = false;
+var textlen = 0;
+
+function initEditor(cb){
+ if(editor==false) {
+ editor = true;
+ $j("#profile-jot-text-loading").show();
+
+ var editorData = {
+ mode : "specific_textareas",
+ editor_selector : "profile-jot-text",
+ auto_focus : "profile-jot-text",
+ //plugins : "bbcode,paste,autoresize,inlinepopups",
+ //paste_text_sticky : true,
+ convert_urls : false,
+ setup : function(ed) {
+ cPopup = null;
+ ed.onKeyDown.add(function(ed,e) {
+ if(cPopup !== null)
+ cPopup.onkey(e);
+ });
+
+ ed.onKeyUp.add(function(ed, e) {
+ var txt = tinyMCE.activeEditor.getContent();
+ match = txt.match(/@([^ \n]+)$/);
+ if(match!==null) {
+ if(cPopup === null) {
+ cPopup = new ACPopup(this,baseurl+"/acl");
+ }
+ if(cPopup.ready && match[1]!==cPopup.searchText) cPopup.search(match[1]);
+ if(! cPopup.ready) cPopup = null;
+ }
+ else {
+ if(cPopup !== null) { cPopup.close(); cPopup = null; }
+ }
+
+ textlen = txt.length;
+ if(textlen != 0 && $j('#jot-perms-icon').is('.unlock')) {
+ $j('#profile-jot-desc').html(window.isPublic);
+ }
+ else {
+ $j('#profile-jot-desc').html(' ');
+ }
+
+ //Character count
+
+ if(textlen <= 140) {
+ $j('#character-counter').removeClass('red');
+ $j('#character-counter').removeClass('orange');
+ $j('#character-counter').addClass('grey');
+ }
+ if((textlen > 140) && (textlen <= 420)) {
+ $j('#character-counter').removeClass('grey');
+ $j('#character-counter').removeClass('red');
+ $j('#character-counter').addClass('orange');
+ }
+ if(textlen > 420) {
+ $j('#character-counter').removeClass('grey');
+ $j('#character-counter').removeClass('orange');
+ $j('#character-counter').addClass('red');
+ }
+ $j('#character-counter').text(textlen);
+ });
+
+ ed.onInit.add(function(ed) {
+ ed.pasteAsPlainText = true;
+ $j("#profile-jot-text-loading").hide();
+ $j(".jothidden").show();
+ if (typeof cb!="undefined") cb();
+ });
+
+ },
+ plaintextFn : function() {
+ $j("#profile-jot-text-loading").hide();
+ $j("#profile-jot-text").css({ 'height': 200, 'color': '#000' });
+ $j("#profile-jot-text").contact_autocomplete(baseurl+"/acl");
+ $j(".jothidden").show();
+ if (typeof cb!="undefined") cb();
+ }
+ };
+ InitMCEEditor(editorData);
+
+ // setup acl popup
+ $j("a#jot-perms-icon").colorbox({
+ 'inline' : true,
+ 'transition' : 'elastic'
+ });
+ } else {
+ if (typeof cb!="undefined") cb();
+ }
+}
+
+function enableOnUser(){
+ if (editor) return;
+ $j(this).val("");
+ initEditor();
+}
+
+
+function msgInitEditor() {
+ var editorData = {
+ mode : "specific_textareas",
+ editor_selector : "prvmail-text",
+ //plugins : "bbcode,paste",
+ //paste_text_sticky : true,
+ convert_urls : false,
+ //theme_advanced_path : false,
+ setup : function(ed) {
+ cPopup = null;
+ ed.onKeyDown.add(function(ed,e) {
+ if(cPopup !== null)
+ cPopup.onkey(e);
+ });
+
+ ed.onKeyUp.add(function(ed, e) {
+ var txt = tinyMCE.activeEditor.getContent();
+ match = txt.match(/@([^ \n]+)$/);
+ if(match!==null) {
+ if(cPopup === null) {
+ cPopup = new ACPopup(this,baseurl+"/acl");
+ }
+ if(cPopup.ready && match[1]!==cPopup.searchText) cPopup.search(match[1]);
+ if(! cPopup.ready) cPopup = null;
+ }
+ else {
+ if(cPopup !== null) { cPopup.close(); cPopup = null; }
+ }
+
+ textlen = txt.length;
+ if(textlen != 0 && $j('#jot-perms-icon').is('.unlock')) {
+ $j('#profile-jot-desc').html(window.isPublic);
+ }
+ else {
+ $j('#profile-jot-desc').html(' ');
+ }
+ });
+
+ ed.onInit.add(function(ed) {
+ ed.pasteAsPlainText = true;
+ var editorId = ed.editorId;
+ var textarea = $j('#'+editorId);
+ if (typeof(textarea.attr('tabindex')) != "undefined") {
+ $j('#'+editorId+'_ifr').attr('tabindex', textarea.attr('tabindex'));
+ textarea.attr('tabindex', null);
+ }
+ });
+ },
+ plaintextFn : function() {
+ $j("#prvmail-text").contact_autocomplete(baseurl+"/acl");
+ }
+ }
+ InitMCEEditor(editorData);
+}
+
+
+function contactInitEditor() {
+ var editorData = {
+ mode : "exact",
+ elements : "contact-edit-info",
+ //plugins : "bbcode"
+ }
+ InitMCEEditor(editorData);
+}
+
+
+function eventInitEditor() {
+ var editorData = {
+ mode : "textareas",
+ //plugins : "bbcode,paste",
+ //paste_text_sticky : true,
+ //theme_advanced_path : false,
+ setup : function(ed) {
+ ed.onInit.add(function(ed) {
+ ed.pasteAsPlainText = true;
+ });
+ }
+ }
+ InitMCEEditor(editorData);
+}
+
+
+function profInitEditor() {
+ var editorData = {
+ mode : "textareas",
+ //plugins : "bbcode,paste",
+ //paste_text_sticky : true,
+ //theme_advanced_path : false,
+ setup : function(ed) {
+ ed.onInit.add(function(ed) {
+ ed.pasteAsPlainText = true;
+ });
+ }
+ }
+ InitMCEEditor(editorData);
+}
+
+
+/*
+ * Jot
+ */
+
+function addeditortext(textElem, data) {
+ if(window.editSelect == 'none') {
+ var currentText = $j(textElem).val();
+ $j(textElem).val(currentText + data);
+ }
+ else
+ tinyMCE.execCommand('mceInsertRawHTML',false,data);
+}
+
+function jotVideoURL() {
+ reply = prompt(window.vidURL);
+ if(reply && reply.length) {
+ addeditortext("#profile-jot-text", '[video]' + reply + '[/video]');
+ }
+}
+
+function jotAudioURL() {
+ reply = prompt(window.audURL);
+ if(reply && reply.length) {
+ addeditortext("#profile-jot-text", '[audio]' + reply + '[/audio]');
+ }
+}
+
+
+function jotGetLocation() {
+
+/* if(navigator.geolocation) {
+
+ navigator.geolocation.getCurrentPosition(function(position) {
+ var lat = position.coords.latitude;
+ var lng = position.coords.longitude;
+
+ $j.ajax({
+ type: 'GET',
+ url: 'http://nominatim.openstreetmap.org/reverse?format=json&lat='+lat+'&lon='+lng,
+ jsonp: 'json_callback',
+ contentType: 'application/json',
+ dataType: 'jsonp',
+ success: function(json) {
+ console.log(json);
+ var locationDisplay = json.address.building+', '+json.address.city+', '+json.address.state;
+ $j('#jot-location').val(locationDisplay);
+ $j('#jot-display-location').html('Location: '+locationDisplay);
+ $j('#jot-display-location').show();
+ }
+ });
+ });
+
+ }
+ else {
+ reply = prompt(window.whereAreU, $j('#jot-location').val());
+ if(reply && reply.length) {
+ $j('#jot-location').val(reply);
+ }
+ }*/
+
+ reply = prompt(window.whereAreU, $j('#jot-location').val());
+ if(reply && reply.length) {
+ $j('#jot-location').val(reply);
+ }
+}
+
+function jotShare(id) {
+ if ($j('#jot-popup').length != 0) $j('#jot-popup').show();
+
+ $j('#like-rotator-' + id).show();
+ $j.get('share/' + id, function(data) {
+ if (!editor) $j("#profile-jot-text").val("");
+ initEditor(function(){
+ addeditortext("#profile-jot-text", data);
+ $j('#like-rotator-' + id).hide();
+ $j(window).scrollTop(0);
+ });
+
+ });
+}
+
+function jotClearLocation() {
+ $j('#jot-coord').val('');
+ $j('#profile-nolocation-wrapper').hide();
+}
+
+
+function jotGetLink() {
+ reply = prompt(window.linkURL);
+ if(reply && reply.length) {
+ reply = bin2hex(reply);
+ $j('#profile-rotator').show();
+ $j.get('parse_url?binurl=' + reply, function(data) {
+ addeditortext(window.jotId, data);
+ $j('#profile-rotator').hide();
+ });
+ }
+}
+
+
+function linkdropper(event) {
+ var linkFound = event.dataTransfer.types.contains("text/uri-list");
+ if(linkFound)
+ event.preventDefault();
+}
+
+
+function linkdrop(event) {
+ var reply = event.dataTransfer.getData("text/uri-list");
+ //event.target.textContent = reply;
+ event.preventDefault();
+ if(reply && reply.length) {
+ reply = bin2hex(reply);
+ $j('#profile-rotator').show();
+ $j.get('parse_url?binurl=' + reply, function(data) {
+/* if(window.jotId == "#profile-jot-text") {
+ if (!editor) $j("#profile-jot-text").val("");
+ initEditor(function(){
+ addeditortext(window.jotId, data);
+ $j('#profile-rotator').hide();
+ });
+ }
+ else {*/
+ addeditortext(window.jotId, data);
+ $j('#profile-rotator').hide();
+// }
+ });
+ }
+}
+
+
+if(typeof window.geoTag === 'function') window.geoTag();
+
+
+/*
+ * Items
+ */
+
+function confirmDelete() { return confirm(window.delItem); }
+
+function deleteCheckedItems(delID) {
+ if(confirm(window.delItems)) {
+ var checkedstr = '';
+
+ $j(delID).hide();
+ $j(delID + '-rotator').show();
+ $j('.item-select').each( function() {
+ if($j(this).is(':checked')) {
+ if(checkedstr.length != 0) {
+ checkedstr = checkedstr + ',' + $j(this).val();
+ }
+ else {
+ checkedstr = $j(this).val();
+ }
+ }
+ });
+ $j.post('item', { dropitems: checkedstr }, function(data) {
+ window.location.reload();
+ });
+ }
+}
+
+function itemTag(id) {
+ reply = prompt(window.term);
+ if(reply && reply.length) {
+ reply = reply.replace('#','');
+ if(reply.length) {
+
+ commentBusy = true;
+ $j('body').css('cursor', 'wait');
+
+ $j.get('tagger/' + id + '?term=' + reply, NavUpdate);
+ /*if(timer) clearTimeout(timer);
+ timer = setTimeout(NavUpdate,3000);*/
+ liking = 1;
+ }
+ }
+}
+
+function itemFiler(id) {
+
+ var bordercolor = $j("input").css("border-color");
+
+ $j.get('filer/', function(data){
+ $j.colorbox({html:data});
+ $j.colorbox.resize();
+ $j("#id_term").keypress(function(){
+ $j(this).css("border-color",bordercolor);
+ })
+ $j("#select_term").change(function(){
+ $j("#id_term").css("border-color",bordercolor);
+ })
+
+ $j("#filer_save").click(function(e){
+ e.preventDefault();
+ reply = $j("#id_term").val();
+ if(reply && reply.length) {
+ commentBusy = true;
+ $j('body').css('cursor', 'wait');
+ $j.get('filer/' + id + '?term=' + reply, NavUpdate);
+/* if(timer) clearTimeout(timer);
+ timer = setTimeout(NavUpdate,3000);*/
+ liking = 1;
+ $j.colorbox.close();
+ } else {
+ $j("#id_term").css("border-color","#FF0000");
+ }
+ return false;
+ });
+ });
+
+}
+
+
+/*
+ * Comments
+ */
+
function insertFormatting(comment,BBcode,id) {
- var tmpStr = $j("#comment-edit-text-" + id).val();
- if(tmpStr == comment) {
- tmpStr = "";
- $j("#comment-edit-text-" + id).addClass("comment-edit-text-full");
- $j("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
- openMenu("comment-edit-submit-wrapper-" + id);
- $j("#comment-edit-text-" + id).val(tmpStr);
- }
+ var tmpStr = $j("#comment-edit-text-" + id).val();
+ if(tmpStr == comment) {
+ tmpStr = "";
+ $j("#comment-edit-text-" + id).addClass("comment-edit-text-full");
+ $j("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
+ openMenu("comment-edit-submit-wrapper-" + id);
+ $j("#comment-edit-text-" + id).val(tmpStr);
+ }
textarea = document.getElementById("comment-edit-text-" +id);
if (document.selection) {
@@ -535,8 +951,6 @@ function cmtBbClose(id) {
$j("#comment-edit-bb-" + id).hide();
}
-function confirmDelete() { return confirm(window.delItem); }
-
function commentOpen(obj,id) {
if(obj.value == window.commentEmptyText) {
obj.value = "";
@@ -599,463 +1013,3 @@ function qCommentInsert(obj,id) {
}
}*/
-
-
-function enableOnUser(){
- if (editor) return;
- $j(this).val("");
- initEditor();
-}
-
-
-var editor=false;
-var textlen = 0;
-var plaintext = window.editSelect;
-var ispublic = window.isPublic;
-
-function initEditor(cb){
- if (editor==false){
- $j("#profile-jot-text-loading").show();
- if(plaintext == 'none') {
- $j("#profile-jot-text-loading").hide();
- $j("#profile-jot-text").css({ 'height': 200, 'color': '#000' });
- $j("#profile-jot-text").contact_autocomplete(baseurl+"/acl");
- editor = true;
- $j("a#jot-perms-icon").colorbox({
- 'inline' : true,
- 'transition' : 'elastic'
- });
- $j(".jothidden").show();
- if (typeof cb!="undefined") cb();
- return;
- }
- tinyMCE.init({
- theme : "advanced",
- mode : "specific_textareas",
- editor_selector: window.editSelect,
- auto_focus: "profile-jot-text",
- plugins : "bbcode,paste,autoresize, inlinepopups",
- theme_advanced_buttons1 : "bold,italic,underline,undo,redo,link,unlink,image,forecolor,formatselect,code",
- theme_advanced_buttons2 : "",
- theme_advanced_buttons3 : "",
- theme_advanced_toolbar_location : "top",
- theme_advanced_toolbar_align : "center",
- theme_advanced_blockformats : "blockquote,code",
- gecko_spellcheck : true,
- paste_text_sticky : true,
- entity_encoding : "raw",
- add_unload_trigger : false,
- remove_linebreaks : false,
- //force_p_newlines : false,
- //force_br_newlines : true,
- forced_root_block : 'div',
- convert_urls: false,
- content_css: window.baseURL + "/view/custom_tinymce.css",
- theme_advanced_path : false,
- file_browser_callback : "fcFileBrowser",
- setup : function(ed) {
- cPopup = null;
- ed.onKeyDown.add(function(ed,e) {
- if(cPopup !== null)
- cPopup.onkey(e);
- });
-
- ed.onKeyUp.add(function(ed, e) {
- var txt = tinyMCE.activeEditor.getContent();
- match = txt.match(/@([^ \n]+)$/);
- if(match!==null) {
- if(cPopup === null) {
- cPopup = new ACPopup(this,baseurl+"/acl");
- }
- if(cPopup.ready && match[1]!==cPopup.searchText) cPopup.search(match[1]);
- if(! cPopup.ready) cPopup = null;
- }
- else {
- if(cPopup !== null) { cPopup.close(); cPopup = null; }
- }
-
- textlen = txt.length;
- if(textlen != 0 && $j('#jot-perms-icon').is('.unlock')) {
- $j('#profile-jot-desc').html(ispublic);
- }
- else {
- $j('#profile-jot-desc').html(' ');
- }
-
- //Character count
-
- if(textlen <= 140) {
- $j('#character-counter').removeClass('red');
- $j('#character-counter').removeClass('orange');
- $j('#character-counter').addClass('grey');
- }
- if((textlen > 140) && (textlen <= 420)) {
- $j('#character-counter').removeClass('grey');
- $j('#character-counter').removeClass('red');
- $j('#character-counter').addClass('orange');
- }
- if(textlen > 420) {
- $j('#character-counter').removeClass('grey');
- $j('#character-counter').removeClass('orange');
- $j('#character-counter').addClass('red');
- }
- $j('#character-counter').text(textlen);
- });
-
- ed.onInit.add(function(ed) {
- ed.pasteAsPlainText = true;
- $j("#profile-jot-text-loading").hide();
- $j(".jothidden").show();
- if (typeof cb!="undefined") cb();
- });
-
- }
- });
- editor = true;
- // setup acl popup
- $j("a#jot-perms-icon").colorbox({
- 'inline' : true,
- 'transition' : 'elastic'
- });
- } else {
- if (typeof cb!="undefined") cb();
- }
-}
-
-
-function msgInitEditor() {
- if(plaintext != 'none') {
- tinyMCE.init({
- theme : "advanced",
- mode : "specific_textareas",
- editor_selector: /(profile-jot-text|prvmail-text)/,
- plugins : "bbcode,paste",
- theme_advanced_buttons1 : "bold,italic,underline,undo,redo,link,unlink,image,forecolor",
- theme_advanced_buttons2 : "",
- theme_advanced_buttons3 : "",
- theme_advanced_toolbar_location : "top",
- theme_advanced_toolbar_align : "center",
- theme_advanced_blockformats : "blockquote,code",
- gecko_spellcheck : true,
- paste_text_sticky : true,
- entity_encoding : "raw",
- add_unload_trigger : false,
- remove_linebreaks : false,
- //force_p_newlines : false,
- //force_br_newlines : true,
- forced_root_block : 'div',
- convert_urls: false,
- content_css: baseurl + "/view/custom_tinymce.css",
- //Character count
- theme_advanced_path : false,
- setup : function(ed) {
- ed.onInit.add(function(ed) {
- ed.pasteAsPlainText = true;
- var editorId = ed.editorId;
- var textarea = $j('#'+editorId);
- if (typeof(textarea.attr('tabindex')) != "undefined") {
- $j('#'+editorId+'_ifr').attr('tabindex', textarea.attr('tabindex'));
- textarea.attr('tabindex', null);
- }
- });
- }
- });
- }
- else
- $j("#prvmail-text").contact_autocomplete(baseurl+"/acl");
-}
-
-
-function profInitEditor() {
- tinyMCE.init({
- theme : "advanced",
- mode : window.editSelect,
- plugins : "bbcode,paste",
- theme_advanced_buttons1 : "bold,italic,underline,undo,redo,link,unlink,image,forecolor,formatselect,code",
- theme_advanced_buttons2 : "",
- theme_advanced_buttons3 : "",
- theme_advanced_toolbar_location : "top",
- theme_advanced_toolbar_align : "center",
- theme_advanced_blockformats : "blockquote,code",
- gecko_spellcheck : true,
- paste_text_sticky : true,
- entity_encoding : "raw",
- add_unload_trigger : false,
- remove_linebreaks : false,
- //force_p_newlines : false,
- //force_br_newlines : true,
- forced_root_block : 'div',
- content_css: baseurl + "/view/custom_tinymce.css",
- theme_advanced_path : false,
- setup : function(ed) {
- ed.onInit.add(function(ed) {
- ed.pasteAsPlainText = true;
- });
- }
-
- });
-}
-
-function eventInitEditor() {
- tinyMCE.init({
- theme : "advanced",
- mode : "textareas",
- plugins : "bbcode,paste",
- theme_advanced_buttons1 : "bold,italic,underline,undo,redo,link,unlink,image,forecolor,formatselect,code",
- theme_advanced_buttons2 : "",
- theme_advanced_buttons3 : "",
- theme_advanced_toolbar_location : "top",
- theme_advanced_toolbar_align : "center",
- theme_advanced_blockformats : "blockquote,code",
- gecko_spellcheck : true,
- paste_text_sticky : true,
- entity_encoding : "raw",
- add_unload_trigger : false,
- remove_linebreaks : false,
- //force_p_newlines : false,
- //force_br_newlines : true,
- forced_root_block : 'div',
- content_css: baseurl + "/view/custom_tinymce.css",
- theme_advanced_path : false,
- setup : function(ed) {
- ed.onInit.add(function(ed) {
- ed.pasteAsPlainText = true;
- });
- }
-
- });
-}
-
-function contactInitEditor () {
- tinyMCE.init({
- theme : "advanced",
- mode : window.editSelect,
- elements: "contact-edit-info",
- plugins : "bbcode",
- theme_advanced_buttons1 : "bold,italic,underline,undo,redo,link,unlink,image,forecolor",
- theme_advanced_buttons2 : "",
- theme_advanced_buttons3 : "",
- theme_advanced_toolbar_location : "top",
- theme_advanced_toolbar_align : "center",
- theme_advanced_styles : "blockquote,code",
- gecko_spellcheck : true,
- entity_encoding : "raw",
- add_unload_trigger : false,
- remove_linebreaks : false,
- //force_p_newlines : false,
- //force_br_newlines : true,
- forced_root_block : 'div',
- content_css: baseurl + "/view/custom_tinymce.css"
-
-
- });
-}
-
-function wallInitEditor() {
- var plaintext = window.editSelect;
-
- if(plaintext != 'none') {
- tinyMCE.init({
- theme : "advanced",
- mode : "specific_textareas",
- editor_selector: /(profile-jot-text|prvmail-text)/,
- plugins : "bbcode,paste",
- theme_advanced_buttons1 : "bold,italic,underline,undo,redo,link,unlink,image,forecolor",
- theme_advanced_buttons2 : "",
- theme_advanced_buttons3 : "",
- theme_advanced_toolbar_location : "top",
- theme_advanced_toolbar_align : "center",
- theme_advanced_blockformats : "blockquote,code",
- gecko_spellcheck : true,
- paste_text_sticky : true,
- entity_encoding : "raw",
- add_unload_trigger : false,
- remove_linebreaks : false,
- //force_p_newlines : false,
- //force_br_newlines : true,
- forced_root_block : 'div',
- convert_urls: false,
- content_css: baseurl + "/view/custom_tinymce.css",
- //Character count
- theme_advanced_path : false,
- setup : function(ed) {
- ed.onInit.add(function(ed) {
- ed.pasteAsPlainText = true;
- var editorId = ed.editorId;
- var textarea = $j('#'+editorId);
- if (typeof(textarea.attr('tabindex')) != "undefined") {
- $j('#'+editorId+'_ifr').attr('tabindex', textarea.attr('tabindex'));
- textarea.attr('tabindex', null);
- }
- });
- }
- });
- }
- else
- $j("#prvmail-text").contact_autocomplete(baseurl+"/acl");
-}
-
-function deleteCheckedItems(delID) {
- if(confirm(window.delItems)) {
- var checkedstr = '';
-
- $j(delID).hide();
- $j(delID + '-rotator').show();
- $j('.item-select').each( function() {
- if($j(this).is(':checked')) {
- if(checkedstr.length != 0) {
- checkedstr = checkedstr + ',' + $j(this).val();
- }
- else {
- checkedstr = $j(this).val();
- }
- }
- });
- $j.post('item', { dropitems: checkedstr }, function(data) {
- window.location.reload();
- });
- }
-}
-
-
-function jotVideoURL() {
- reply = prompt(window.vidURL);
- if(reply && reply.length) {
- addeditortext('[video]' + reply + '[/video]');
- }
-}
-
-function jotAudioURL() {
- reply = prompt(window.audURL);
- if(reply && reply.length) {
- addeditortext('[audio]' + reply + '[/audio]');
- }
-}
-
-
-function jotGetLocation() {
-
-/* if(navigator.geolocation) {
-
- navigator.geolocation.getCurrentPosition(function(position) {
- var lat = position.coords.latitude;
- var lng = position.coords.longitude;
-
- $j.ajax({
- type: 'GET',
- url: 'http://nominatim.openstreetmap.org/reverse?format=json&lat='+lat+'&lon='+lng,
- jsonp: 'json_callback',
- contentType: 'application/json',
- dataType: 'jsonp',
- success: function(json) {
- console.log(json);
- var locationDisplay = json.address.building+', '+json.address.city+', '+json.address.state;
- $j('#jot-location').val(locationDisplay);
- $j('#jot-display-location').html('Location: '+locationDisplay);
- $j('#jot-display-location').show();
- }
- });
- });
-
- }
- else {
- reply = prompt(window.whereAreU, $j('#jot-location').val());
- if(reply && reply.length) {
- $j('#jot-location').val(reply);
- }
- }*/
-
- reply = prompt(window.whereAreU, $j('#jot-location').val());
- if(reply && reply.length) {
- $j('#jot-location').val(reply);
- }
-}
-
-function jotShare(id) {
- if ($j('#jot-popup').length != 0) $j('#jot-popup').show();
-
- $j('#like-rotator-' + id).show();
- $j.get('share/' + id, function(data) {
- if (!editor) $j("#profile-jot-text").val("");
- initEditor(function(){
- addeditortext(data);
- $j('#like-rotator-' + id).hide();
- $j(window).scrollTop(0);
- });
-
- });
-}
-
-function linkdropper(event) {
- var linkFound = event.dataTransfer.types.contains("text/uri-list");
- if(linkFound)
- event.preventDefault();
-}
-
-function itemTag(id) {
- reply = prompt(window.term);
- if(reply && reply.length) {
- reply = reply.replace('#','');
- if(reply.length) {
-
- commentBusy = true;
- $j('body').css('cursor', 'wait');
-
- $j.get('tagger/' + id + '?term=' + reply, NavUpdate);
- /*if(timer) clearTimeout(timer);
- timer = setTimeout(NavUpdate,3000);*/
- liking = 1;
- }
- }
-}
-
-function itemFiler(id) {
-
- var bordercolor = $j("input").css("border-color");
-
- $j.get('filer/', function(data){
- $j.colorbox({html:data});
- $j("#id_term").keypress(function(){
- $j(this).css("border-color",bordercolor);
- })
- $j("#select_term").change(function(){
- $j("#id_term").css("border-color",bordercolor);
- })
-
- $j("#filer_save").click(function(e){
- e.preventDefault();
- reply = $j("#id_term").val();
- if(reply && reply.length) {
- commentBusy = true;
- $j('body').css('cursor', 'wait');
- $j.get('filer/' + id + '?term=' + reply, NavUpdate);
-/* if(timer) clearTimeout(timer);
- timer = setTimeout(NavUpdate,3000);*/
- liking = 1;
- $j.colorbox.close();
- } else {
- $j("#id_term").css("border-color","#FF0000");
- }
- return false;
- });
- });
-
-}
-
-function jotClearLocation() {
- $j('#jot-coord').val('');
- $j('#profile-nolocation-wrapper').hide();
-}
-
-function addeditortext(data) {
- if(plaintext == 'none') {
- var currentText = $j("#profile-jot-text").val();
- $j("#profile-jot-text").val(currentText + data);
- }
- else
- tinyMCE.execCommand('mceInsertRawHTML',false,data);
-}
-
-if(typeof window.geoTag === 'function') window.geoTag();
-
-
diff --git a/view/theme/frost/js/theme.min.js b/view/theme/frost/js/theme.min.js
index c1a56c8ef..94384c046 100644
--- a/view/theme/frost/js/theme.min.js
+++ b/view/theme/frost/js/theme.min.js
@@ -1 +1 @@
-$j(document).ready(function(){window.navMenuTimeout={"#network-menu-list-timeout":null,"#contacts-menu-list-timeout":null,"#system-menu-list-timeout":null,"#network-menu-list-opening":false,"#contacts-menu-list-opening":false,"#system-menu-list-opening":false,"#network-menu-list-closing":false,"#contacts-menu-list-closing":false,"#system-menu-list-closing":false};if(typeof window.aclInit!="undefined"&&typeof acl=="undefined"){acl=new ACL(baseurl+"/acl",[window.allowCID,window.allowGID,window.denyCID,window.denyGID])}$j("#profile-jot-text").focus(enableOnUser);$j("#profile-jot-text").click(enableOnUser);$j(".nav-menu-list, .nav-menu-icon").hover(function(){showNavMenu($j(this).attr("point"))},function(){hideNavMenu($j(this).attr("point"))});$j(".group-edit-icon").hover(function(){$j(this).addClass("icon");$j(this).removeClass("iconspacer")},function(){$j(this).removeClass("icon");$j(this).addClass("iconspacer")});$j(".sidebar-group-element").hover(function(){id=$j(this).attr("id");$j("#edit-"+id).addClass("icon");$j("#edit-"+id).removeClass("iconspacer")},function(){id=$j(this).attr("id");$j("#edit-"+id).removeClass("icon");$j("#edit-"+id).addClass("iconspacer")});$j(".savedsearchdrop").hover(function(){$j(this).addClass("drop");$j(this).addClass("icon");$j(this).removeClass("iconspacer")},function(){$j(this).removeClass("drop");$j(this).removeClass("icon");$j(this).addClass("iconspacer")});$j(".savedsearchterm").hover(function(){id=$j(this).attr("id");$j("#drop-"+id).addClass("icon");$j("#drop-"+id).addClass("drophide");$j("#drop-"+id).removeClass("iconspacer")},function(){id=$j(this).attr("id");$j("#drop-"+id).removeClass("icon");$j("#drop-"+id).removeClass("drophide");$j("#drop-"+id).addClass("iconspacer")});if(window.autoCompleteType=="display-head"){$j(".comment-wwedit-wrapper textarea").contact_autocomplete(baseurl+"/acl")}if(window.aclType=="event_head"){$j("#events-calendar").fullCalendar({events:baseurl+"/events/json/",header:{left:"prev,next today",center:"title",right:"month,agendaWeek,agendaDay"},timeFormat:"H(:mm)",eventClick:function(calEvent,jsEvent,view){showEvent(calEvent.id)},eventRender:function(event,element,view){if(event.item["author-name"]==null)return;switch(view.name){case"month":element.find(".fc-event-title").html("
{1} : {2}".format(event.item["author-avatar"],event.item["author-name"],event.title));break;case"agendaWeek":element.find(".fc-event-title").html("
{1}
{2}
{3}
".format(event.item["author-avatar"],event.item["author-name"],event.item.desc,event.item.location));break;case"agendaDay":element.find(".fc-event-title").html("
{1}
{2}
{3}
".format(event.item["author-avatar"],event.item["author-name"],event.item.desc,event.item.location));break}}});var args=location.href.replace(baseurl,"").split("/");if(args.length>=4){$j("#events-calendar").fullCalendar("gotoDate",args[2],args[3]-1)}var hash=location.hash.split("-");if(hash.length==2&&hash[0]=="#link")showEvent(hash[1])}$j("#event-share-checkbox").change(function(){if($j("#event-share-checkbox").is(":checked")){$j("#acl-wrapper").show()}else{$j("#acl-wrapper").hide()}}).trigger("change");if(window.aclType=="settings-head"||window.aclType=="photos_head"||window.aclType=="event_head"){$j("#contact_allow, #contact_deny, #group_allow, #group_deny").change(function(){var selstr;$j("#contact_allow option:selected, #contact_deny option:selected, #group_allow option:selected, #group_deny option:selected").each(function(){selstr=$j(this).text();$j("#jot-perms-icon").removeClass("unlock").addClass("lock");$j("#jot-public").hide()});if(selstr==null){$j("#jot-perms-icon").removeClass("lock").addClass("unlock");$j("#jot-public").show()}}).trigger("change")}switch(window.autocompleteType){case"msg-header":var a=$j("#recip").autocomplete({serviceUrl:baseurl+"/acl",minChars:2,width:350,onSelect:function(value,data){$j("#recip-complete").val(data)}});break;case"contacts-head":var a=$j("#contacts-search").autocomplete({serviceUrl:baseurl+"/acl",minChars:2,width:350});a.setOptions({params:{type:"a"}});break;default:break}if(typeof window.AjaxUpload!="undefined"){switch(window.ajaxType){case"jot-header":var uploader=new window.AjaxUpload("wall-image-upload",{action:"wall_upload/"+window.nickname,name:"userfile",onSubmit:function(file,ext){$j("#profile-rotator").show()},onComplete:function(file,response){addeditortext(response);$j("#profile-rotator").hide()}});var file_uploader=new window.AjaxUpload("wall-file-upload",{action:"wall_attach/"+window.nickname,name:"userfile",onSubmit:function(file,ext){$j("#profile-rotator").show()},onComplete:function(file,response){addeditortext(response);$j("#profile-rotator").hide()}});break;case"msg-header":var uploader=new window.AjaxUpload("prvmail-upload",{action:"wall_upload/"+window.nickname,name:"userfile",onSubmit:function(file,ext){$j("#profile-rotator").show()},onComplete:function(file,response){tinyMCE.execCommand("mceInsertRawHTML",false,response);$j("#profile-rotator").hide()}});break;default:break}}});$j(function(){$j("nav").bind("nav-update",function(e,data){var elm=$j("#pending-update");var register=$j(data).find("register").text();if(register=="0"){register="";elm.hide()}else{elm.show()}elm.html(register)})});$j(function(){$j("#cnftheme").click(function(){$.colorbox({width:800,height:"90%",href:"$baseurl/admin/themes/"+$j("#id_theme :selected").val(),onComplete:function(){$j("div#fancybox-content form").submit(function(e){var url=$j(this).attr("action");var data={};$j(this).find("input").each(function(){data[$j(this).attr("name")]=$j(this).val()});$j(this).find("select").each(function(){data[$j(this).attr("name")]=$j(this).children(":selected").val()});console.log(":)",url,data);$j.post(url,data,function(data){if(timer)clearTimeout(timer);NavUpdate();$j.colorbox.close()});return false})}});return false})});function homeRedirect(){$j("html").fadeOut("slow",function(){window.location=baseurl+"/login"})}if(typeof window.photoEdit!="undefined"){$j(document).keydown(function(event){if(window.prevLink!=""){if(event.ctrlKey&&event.keyCode==37){event.preventDefault();window.location.href=window.prevLink}}if(window.nextLink!=""){if(event.ctrlKey&&event.keyCode==39){event.preventDefault();window.location.href=window.nextLink}}})}switch(window.ajaxType){case"jot-header":function jotGetLink(){reply=prompt(window.linkURL);if(reply&&reply.length){reply=bin2hex(reply);$j("#profile-rotator").show();$j.get("parse_url?binurl="+reply,function(data){addeditortext(data);$j("#profile-rotator").hide()})}}function linkdrop(event){var reply=event.dataTransfer.getData("text/uri-list");event.target.textContent=reply;event.preventDefault();if(reply&&reply.length){reply=bin2hex(reply);$j("#profile-rotator").show();$j.get("parse_url?binurl="+reply,function(data){if(!editor)$j("#profile-jot-text").val("");initEditor(function(){addeditortext(data);$j("#profile-rotator").hide()})})}}break;case"msg-header":case"wallmsg-header":function jotGetLink(){reply=prompt(window.linkURL);if(reply&&reply.length){$j("#profile-rotator").show();$j.get("parse_url?url="+reply,function(data){tinyMCE.execCommand("mceInsertRawHTML",false,data);$j("#profile-rotator").hide()})}}function linkdrop(event){var reply=event.dataTransfer.getData("text/uri-list");event.target.textContent=reply;event.preventDefault();if(reply&&reply.length){$j("#profile-rotator").show();$j.get("parse_url?url="+reply,function(data){tinyMCE.execCommand("mceInsertRawHTML",false,data);$j("#profile-rotator").hide()})}}break;default:break}function showEvent(eventid){$j.get(baseurl+"/events/?id="+eventid,function(data){$j.colorbox({html:data})})}function initCrop(){function onEndCrop(coords,dimensions){$("x1").value=coords.x1;$("y1").value=coords.y1;$("x2").value=coords.x2;$("y2").value=coords.y2;$("width").value=dimensions.width;$("height").value=dimensions.height}Event.observe(window,"load",function(){new Cropper.ImgWithPreview("croppa",{previewWrap:"previewWrap",minWidth:175,minHeight:175,maxWidth:640,maxHeight:640,ratioDim:{x:100,y:100},displayOnInit:true,onEndCrop:onEndCrop})})}function showNavMenu(menuID){if(window.navMenuTimeout[menuID+"-closing"]){window.navMenuTimeout[menuID+"-closing"]=false;clearTimeout(window.navMenuTimeout[menuID+"-timeout"])}else{window.navMenuTimeout[menuID+"-opening"]=true;window.navMenuTimeout[menuID+"-timeout"]=setTimeout(function(){$j(menuID).slideDown("fast").show();window.navMenuTimeout[menuID+"-opening"]=false},200)}}function hideNavMenu(menuID){if(window.navMenuTimeout[menuID+"-opening"]){window.navMenuTimeout[menuID+"-opening"]=false;clearTimeout(window.navMenuTimeout[menuID+"-timeout"])}else{window.navMenuTimeout[menuID+"-closing"]=true;window.navMenuTimeout[menuID+"-timeout"]=setTimeout(function(){$j(menuID).slideUp("fast");window.navMenuTimeout[menuID+"-closing"]=false},500)}}function insertFormatting(comment,BBcode,id){var tmpStr=$j("#comment-edit-text-"+id).val();if(tmpStr==comment){tmpStr="";$j("#comment-edit-text-"+id).addClass("comment-edit-text-full");$j("#comment-edit-text-"+id).removeClass("comment-edit-text-empty");openMenu("comment-edit-submit-wrapper-"+id);$j("#comment-edit-text-"+id).val(tmpStr)}textarea=document.getElementById("comment-edit-text-"+id);if(document.selection){textarea.focus();selected=document.selection.createRange();if(BBcode=="url"){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)}else textarea.value=textarea.value.substring(0,start)+"["+BBcode+"]"+textarea.value.substring(start,end)+"[/"+BBcode+"]"+textarea.value.substring(end,textarea.value.length)}return true}function cmtBbOpen(id){$j("#comment-edit-bb-"+id).show()}function cmtBbClose(id){$j("#comment-edit-bb-"+id).hide()}function confirmDelete(){return confirm(window.delItem)}function commentOpen(obj,id){if(obj.value==window.commentEmptyText){obj.value="";$j("#comment-edit-text-"+id).addClass("comment-edit-text-full");$j("#comment-edit-text-"+id).removeClass("comment-edit-text-empty");$j("#mod-cmnt-wrap-"+id).show();openMenu("comment-edit-submit-wrapper-"+id)}}function commentClose(obj,id){if(obj.value==""){obj.value=window.commentEmptyText;$j("#comment-edit-text-"+id).removeClass("comment-edit-text-full");$j("#comment-edit-text-"+id).addClass("comment-edit-text-empty");$j("#mod-cmnt-wrap-"+id).hide();closeMenu("comment-edit-submit-wrapper-"+id)}}function commentInsert(obj,id){var tmpStr=$j("#comment-edit-text-"+id).val();if(tmpStr==window.commentEmptyText){tmpStr="";$j("#comment-edit-text-"+id).addClass("comment-edit-text-full");$j("#comment-edit-text-"+id).removeClass("comment-edit-text-empty");openMenu("comment-edit-submit-wrapper-"+id)}var ins=$j(obj).html();ins=ins.replace("<","<");ins=ins.replace(">",">");ins=ins.replace("&","&");ins=ins.replace(""",'"');$j("#comment-edit-text-"+id).val(tmpStr+ins)}function qCommentInsert(obj,id){var tmpStr=$j("#comment-edit-text-"+id).val();if(tmpStr==window.commentEmptyText){tmpStr="";$j("#comment-edit-text-"+id).addClass("comment-edit-text-full");$j("#comment-edit-text-"+id).removeClass("comment-edit-text-empty");openMenu("comment-edit-submit-wrapper-"+id)}var ins=$j(obj).val();ins=ins.replace("<","<");ins=ins.replace(">",">");ins=ins.replace("&","&");ins=ins.replace(""",'"');$j("#comment-edit-text-"+id).val(tmpStr+ins);$j(obj).val("")}function enableOnUser(){if(editor)return;$j(this).val("");initEditor()}var editor=false;var textlen=0;var plaintext=window.editSelect;var ispublic=window.isPublic;function initEditor(cb){if(editor==false){$j("#profile-jot-text-loading").show();if(plaintext=="none"){$j("#profile-jot-text-loading").hide();$j("#profile-jot-text").css({height:200,color:"#000"});$j("#profile-jot-text").contact_autocomplete(baseurl+"/acl");editor=true;$j("a#jot-perms-icon").colorbox({inline:true,transition:"elastic"});$j(".jothidden").show();if(typeof cb!="undefined")cb();return}tinyMCE.init({theme:"advanced",mode:"specific_textareas",editor_selector:window.editSelect,auto_focus:"profile-jot-text",plugins:"bbcode,paste,autoresize, inlinepopups",theme_advanced_buttons1:"bold,italic,underline,undo,redo,link,unlink,image,forecolor,formatselect,code",theme_advanced_buttons2:"",theme_advanced_buttons3:"",theme_advanced_toolbar_location:"top",theme_advanced_toolbar_align:"center",theme_advanced_blockformats:"blockquote,code",gecko_spellcheck:true,paste_text_sticky:true,entity_encoding:"raw",add_unload_trigger:false,remove_linebreaks:false,forced_root_block:"div",convert_urls:false,content_css:window.baseURL+"/view/custom_tinymce.css",theme_advanced_path:false,file_browser_callback:"fcFileBrowser",setup:function(ed){cPopup=null;ed.onKeyDown.add(function(ed,e){if(cPopup!==null)cPopup.onkey(e)});ed.onKeyUp.add(function(ed,e){var txt=tinyMCE.activeEditor.getContent();match=txt.match(/@([^ \n]+)$/);if(match!==null){if(cPopup===null){cPopup=new ACPopup(this,baseurl+"/acl")}if(cPopup.ready&&match[1]!==cPopup.searchText)cPopup.search(match[1]);if(!cPopup.ready)cPopup=null}else{if(cPopup!==null){cPopup.close();cPopup=null}}textlen=txt.length;if(textlen!=0&&$j("#jot-perms-icon").is(".unlock")){$j("#profile-jot-desc").html(ispublic)}else{$j("#profile-jot-desc").html(" ")}if(textlen<=140){$j("#character-counter").removeClass("red");$j("#character-counter").removeClass("orange");$j("#character-counter").addClass("grey")}if(textlen>140&&textlen<=420){$j("#character-counter").removeClass("grey");$j("#character-counter").removeClass("red");$j("#character-counter").addClass("orange")}if(textlen>420){$j("#character-counter").removeClass("grey");$j("#character-counter").removeClass("orange");$j("#character-counter").addClass("red")}$j("#character-counter").text(textlen)});ed.onInit.add(function(ed){ed.pasteAsPlainText=true;$j("#profile-jot-text-loading").hide();$j(".jothidden").show();if(typeof cb!="undefined")cb()})}});editor=true;$j("a#jot-perms-icon").colorbox({inline:true,transition:"elastic"})}else{if(typeof cb!="undefined")cb()}}function msgInitEditor(){if(plaintext!="none"){tinyMCE.init({theme:"advanced",mode:"specific_textareas",editor_selector:/(profile-jot-text|prvmail-text)/,plugins:"bbcode,paste",theme_advanced_buttons1:"bold,italic,underline,undo,redo,link,unlink,image,forecolor",theme_advanced_buttons2:"",theme_advanced_buttons3:"",theme_advanced_toolbar_location:"top",theme_advanced_toolbar_align:"center",theme_advanced_blockformats:"blockquote,code",gecko_spellcheck:true,paste_text_sticky:true,entity_encoding:"raw",add_unload_trigger:false,remove_linebreaks:false,forced_root_block:"div",convert_urls:false,content_css:baseurl+"/view/custom_tinymce.css",theme_advanced_path:false,setup:function(ed){ed.onInit.add(function(ed){ed.pasteAsPlainText=true;var editorId=ed.editorId;var textarea=$j("#"+editorId);if(typeof textarea.attr("tabindex")!="undefined"){$j("#"+editorId+"_ifr").attr("tabindex",textarea.attr("tabindex"));textarea.attr("tabindex",null)}})}})}else $j("#prvmail-text").contact_autocomplete(baseurl+"/acl")}function profInitEditor(){tinyMCE.init({theme:"advanced",mode:window.editSelect,plugins:"bbcode,paste",theme_advanced_buttons1:"bold,italic,underline,undo,redo,link,unlink,image,forecolor,formatselect,code",theme_advanced_buttons2:"",theme_advanced_buttons3:"",theme_advanced_toolbar_location:"top",theme_advanced_toolbar_align:"center",theme_advanced_blockformats:"blockquote,code",gecko_spellcheck:true,paste_text_sticky:true,entity_encoding:"raw",add_unload_trigger:false,remove_linebreaks:false,forced_root_block:"div",content_css:baseurl+"/view/custom_tinymce.css",theme_advanced_path:false,setup:function(ed){ed.onInit.add(function(ed){ed.pasteAsPlainText=true})}})}function eventInitEditor(){tinyMCE.init({theme:"advanced",mode:"textareas",plugins:"bbcode,paste",theme_advanced_buttons1:"bold,italic,underline,undo,redo,link,unlink,image,forecolor,formatselect,code",theme_advanced_buttons2:"",theme_advanced_buttons3:"",theme_advanced_toolbar_location:"top",theme_advanced_toolbar_align:"center",theme_advanced_blockformats:"blockquote,code",gecko_spellcheck:true,paste_text_sticky:true,entity_encoding:"raw",add_unload_trigger:false,remove_linebreaks:false,forced_root_block:"div",content_css:baseurl+"/view/custom_tinymce.css",theme_advanced_path:false,setup:function(ed){ed.onInit.add(function(ed){ed.pasteAsPlainText=true})}})}function contactInitEditor(){tinyMCE.init({theme:"advanced",mode:window.editSelect,elements:"contact-edit-info",plugins:"bbcode",theme_advanced_buttons1:"bold,italic,underline,undo,redo,link,unlink,image,forecolor",theme_advanced_buttons2:"",theme_advanced_buttons3:"",theme_advanced_toolbar_location:"top",theme_advanced_toolbar_align:"center",theme_advanced_styles:"blockquote,code",gecko_spellcheck:true,entity_encoding:"raw",add_unload_trigger:false,remove_linebreaks:false,forced_root_block:"div",content_css:baseurl+"/view/custom_tinymce.css"})}function wallInitEditor(){var plaintext=window.editSelect;if(plaintext!="none"){tinyMCE.init({theme:"advanced",mode:"specific_textareas",editor_selector:/(profile-jot-text|prvmail-text)/,plugins:"bbcode,paste",theme_advanced_buttons1:"bold,italic,underline,undo,redo,link,unlink,image,forecolor",theme_advanced_buttons2:"",theme_advanced_buttons3:"",theme_advanced_toolbar_location:"top",theme_advanced_toolbar_align:"center",theme_advanced_blockformats:"blockquote,code",gecko_spellcheck:true,paste_text_sticky:true,entity_encoding:"raw",add_unload_trigger:false,remove_linebreaks:false,forced_root_block:"div",convert_urls:false,content_css:baseurl+"/view/custom_tinymce.css",theme_advanced_path:false,setup:function(ed){ed.onInit.add(function(ed){ed.pasteAsPlainText=true;var editorId=ed.editorId;var textarea=$j("#"+editorId);if(typeof textarea.attr("tabindex")!="undefined"){$j("#"+editorId+"_ifr").attr("tabindex",textarea.attr("tabindex"));textarea.attr("tabindex",null)}})}})}else $j("#prvmail-text").contact_autocomplete(baseurl+"/acl")}function deleteCheckedItems(delID){if(confirm(window.delItems)){var checkedstr="";$j(delID).hide();$j(delID+"-rotator").show();$j(".item-select").each(function(){if($j(this).is(":checked")){if(checkedstr.length!=0){checkedstr=checkedstr+","+$j(this).val()}else{checkedstr=$j(this).val()}}});$j.post("item",{dropitems:checkedstr},function(data){window.location.reload()})}}function jotVideoURL(){reply=prompt(window.vidURL);if(reply&&reply.length){addeditortext("[video]"+reply+"[/video]")}}function jotAudioURL(){reply=prompt(window.audURL);if(reply&&reply.length){addeditortext("[audio]"+reply+"[/audio]")}}function jotGetLocation(){reply=prompt(window.whereAreU,$j("#jot-location").val());if(reply&&reply.length){$j("#jot-location").val(reply)}}function jotShare(id){if($j("#jot-popup").length!=0)$j("#jot-popup").show();$j("#like-rotator-"+id).show();$j.get("share/"+id,function(data){if(!editor)$j("#profile-jot-text").val("");initEditor(function(){addeditortext(data);$j("#like-rotator-"+id).hide();$j(window).scrollTop(0)})})}function linkdropper(event){var linkFound=event.dataTransfer.types.contains("text/uri-list");if(linkFound)event.preventDefault()}function itemTag(id){reply=prompt(window.term);if(reply&&reply.length){reply=reply.replace("#","");if(reply.length){commentBusy=true;$j("body").css("cursor","wait");$j.get("tagger/"+id+"?term="+reply,NavUpdate);liking=1}}}function itemFiler(id){var bordercolor=$j("input").css("border-color");$j.get("filer/",function(data){$j.colorbox({html:data});$j("#id_term").keypress(function(){$j(this).css("border-color",bordercolor)});$j("#select_term").change(function(){$j("#id_term").css("border-color",bordercolor)});$j("#filer_save").click(function(e){e.preventDefault();reply=$j("#id_term").val();if(reply&&reply.length){commentBusy=true;$j("body").css("cursor","wait");$j.get("filer/"+id+"?term="+reply,NavUpdate);liking=1;$j.colorbox.close()}else{$j("#id_term").css("border-color","#FF0000")}return false})})}function jotClearLocation(){$j("#jot-coord").val("");$j("#profile-nolocation-wrapper").hide()}function addeditortext(data){if(plaintext=="none"){var currentText=$j("#profile-jot-text").val();$j("#profile-jot-text").val(currentText+data)}else tinyMCE.execCommand("mceInsertRawHTML",false,data)}if(typeof window.geoTag==="function")window.geoTag();
\ No newline at end of file
+$j(document).ready(function(){window.navMenuTimeout={"#network-menu-list-timeout":null,"#contacts-menu-list-timeout":null,"#system-menu-list-timeout":null,"#network-menu-list-opening":false,"#contacts-menu-list-opening":false,"#system-menu-list-opening":false,"#network-menu-list-closing":false,"#contacts-menu-list-closing":false,"#system-menu-list-closing":false};$j("#profile-jot-text").focus(enableOnUser);$j("#profile-jot-text").click(enableOnUser);$j(".nav-menu-list, .nav-menu-icon").hover(function(){showNavMenu($j(this).attr("point"))},function(){hideNavMenu($j(this).attr("point"))});$j(".group-edit-icon").hover(function(){$j(this).addClass("icon");$j(this).removeClass("iconspacer")},function(){$j(this).removeClass("icon");$j(this).addClass("iconspacer")});$j(".sidebar-group-element").hover(function(){id=$j(this).attr("id");$j("#edit-"+id).addClass("icon");$j("#edit-"+id).removeClass("iconspacer")},function(){id=$j(this).attr("id");$j("#edit-"+id).removeClass("icon");$j("#edit-"+id).addClass("iconspacer")});$j(".savedsearchdrop").hover(function(){$j(this).addClass("drop");$j(this).addClass("icon");$j(this).removeClass("iconspacer")},function(){$j(this).removeClass("drop");$j(this).removeClass("icon");$j(this).addClass("iconspacer")});$j(".savedsearchterm").hover(function(){id=$j(this).attr("id");$j("#drop-"+id).addClass("icon");$j("#drop-"+id).addClass("drophide");$j("#drop-"+id).removeClass("iconspacer")},function(){id=$j(this).attr("id");$j("#drop-"+id).removeClass("icon");$j("#drop-"+id).removeClass("drophide");$j("#drop-"+id).addClass("iconspacer")});$j("#event-share-checkbox").change(function(){if($j("#event-share-checkbox").is(":checked")){$j("#acl-wrapper").show()}else{$j("#acl-wrapper").hide()}}).trigger("change");if(typeof window.AjaxUpload!="undefined"){var uploader=new window.AjaxUpload(window.imageUploadButton,{action:"wall_upload/"+window.nickname,name:"userfile",onSubmit:function(file,ext){$j("#profile-rotator").show()},onComplete:function(file,response){addeditortext(window.jotId,response);$j("#profile-rotator").hide()}});if($j("#wall-file-upload").length){var file_uploader=new window.AjaxUpload("wall-file-upload",{action:"wall_attach/"+window.nickname,name:"userfile",onSubmit:function(file,ext){$j("#profile-rotator").show()},onComplete:function(file,response){addeditortext(window.jotId,response);$j("#profile-rotator").hide()}})}}if(typeof window.aclInit!="undefined"&&typeof acl=="undefined"){acl=new ACL(baseurl+"/acl",[window.allowCID,window.allowGID,window.denyCID,window.denyGID])}if(window.aclType=="settings-head"||window.aclType=="photos_head"||window.aclType=="event_head"){$j("#contact_allow, #contact_deny, #group_allow, #group_deny").change(function(){var selstr;$j("#contact_allow option:selected, #contact_deny option:selected, #group_allow option:selected, #group_deny option:selected").each(function(){selstr=$j(this).text();$j("#jot-perms-icon").removeClass("unlock").addClass("lock");$j("#jot-public").hide()});if(selstr==null){$j("#jot-perms-icon").removeClass("lock").addClass("unlock");$j("#jot-public").show()}}).trigger("change")}if(window.aclType=="event_head"){$j("#events-calendar").fullCalendar({events:baseurl+"/events/json/",header:{left:"prev,next today",center:"title",right:"month,agendaWeek,agendaDay"},timeFormat:"H(:mm)",eventClick:function(calEvent,jsEvent,view){showEvent(calEvent.id)},eventRender:function(event,element,view){if(event.item["author-name"]==null)return;switch(view.name){case"month":element.find(".fc-event-title").html("
{1} : {2}".format(event.item["author-avatar"],event.item["author-name"],event.title));break;case"agendaWeek":element.find(".fc-event-title").html("
{1}
{2}
{3}
".format(event.item["author-avatar"],event.item["author-name"],event.item.desc,event.item.location));break;case"agendaDay":element.find(".fc-event-title").html("
{1}
{2}
{3}
".format(event.item["author-avatar"],event.item["author-name"],event.item.desc,event.item.location));break}}});var args=location.href.replace(baseurl,"").split("/");if(args.length>=4){$j("#events-calendar").fullCalendar("gotoDate",args[2],args[3]-1)}var hash=location.hash.split("-");if(hash.length==2&&hash[0]=="#link")showEvent(hash[1])}switch(window.autocompleteType){case"msg-header":var a=$j("#recip").autocomplete({serviceUrl:baseurl+"/acl",minChars:2,width:350,onSelect:function(value,data){$j("#recip-complete").val(data)}});break;case"contacts-head":var a=$j("#contacts-search").autocomplete({serviceUrl:baseurl+"/acl",minChars:2,width:350});a.setOptions({params:{type:"a"}});break;case"display-head":$j(".comment-wwedit-wrapper textarea").contact_autocomplete(baseurl+"/acl");break;default:break}$j(".wall-item-body a img").each(function(){var aElem=$j(this).parent();var imgHref=aElem.attr("href");if(imgHref.match(/\/photo\/[a-fA-F0-9]+(-[0-9]\.[\w]+?)?$/)){var cBoxClass=$j(this).closest(".wall-item-body").attr("id")+"-lightbox";$j(this).addClass(cBoxClass);aElem.colorbox({maxHeight:"90%",photo:true,rel:cBoxClass})}})});$j(function(){$j("nav").bind("nav-update",function(e,data){var elm=$j("#pending-update");var register=$j(data).find("register").text();if(register=="0"){register="";elm.hide()}else{elm.show()}elm.html(register)})});$j(function(){$j("#cnftheme").click(function(){$.colorbox({width:800,height:"90%",href:baseurl+"/admin/themes/"+$("#id_theme :selected").val(),onComplete:function(){$j("div#fancybox-content form").submit(function(e){var url=$j(this).attr("action");var data={};$j(this).find("input").each(function(){data[$j(this).attr("name")]=$j(this).val()});$j(this).find("select").each(function(){data[$j(this).attr("name")]=$j(this).children(":selected").val()});console.log(":)",url,data);$j.post(url,data,function(data){if(timer)clearTimeout(timer);NavUpdate();$j.colorbox.close()});return false})}});return false})});function homeRedirect(){$j("html").fadeOut("slow",function(){window.location=baseurl+"/login"})}if(typeof window.photoEdit!="undefined"){$j(document).keydown(function(event){if(window.prevLink!=""){if(event.ctrlKey&&event.keyCode==37){event.preventDefault();window.location.href=window.prevLink}}if(window.nextLink!=""){if(event.ctrlKey&&event.keyCode==39){event.preventDefault();window.location.href=window.nextLink}}})}function showEvent(eventid){$j.get(baseurl+"/events/?id="+eventid,function(data){$j.colorbox({html:data});$j.colorbox.resize()})}function initCrop(){function onEndCrop(coords,dimensions){$("x1").value=coords.x1;$("y1").value=coords.y1;$("x2").value=coords.x2;$("y2").value=coords.y2;$("width").value=dimensions.width;$("height").value=dimensions.height}Event.observe(window,"load",function(){new Cropper.ImgWithPreview("croppa",{previewWrap:"previewWrap",minWidth:175,minHeight:175,maxWidth:640,maxHeight:640,ratioDim:{x:100,y:100},displayOnInit:true,onEndCrop:onEndCrop})})}function showNavMenu(menuID){if(window.navMenuTimeout[menuID+"-closing"]){window.navMenuTimeout[menuID+"-closing"]=false;clearTimeout(window.navMenuTimeout[menuID+"-timeout"])}else{window.navMenuTimeout[menuID+"-opening"]=true;window.navMenuTimeout[menuID+"-timeout"]=setTimeout(function(){$j(menuID).slideDown("fast").show();window.navMenuTimeout[menuID+"-opening"]=false},200)}}function hideNavMenu(menuID){if(window.navMenuTimeout[menuID+"-opening"]){window.navMenuTimeout[menuID+"-opening"]=false;clearTimeout(window.navMenuTimeout[menuID+"-timeout"])}else{window.navMenuTimeout[menuID+"-closing"]=true;window.navMenuTimeout[menuID+"-timeout"]=setTimeout(function(){$j(menuID).slideUp("fast");window.navMenuTimeout[menuID+"-closing"]=false},500)}}function InitMCEEditor(editorData){var tinyMCEInitConfig={theme:"advanced",plugins:"bbcode,paste,autoresize,inlinepopups",theme_advanced_buttons1:"bold,italic,underline,undo,redo,link,unlink,image,forecolor,formatselect,code",theme_advanced_buttons2:"",theme_advanced_buttons3:"",theme_advanced_toolbar_location:"top",theme_advanced_toolbar_align:"center",theme_advanced_blockformats:"blockquote,code",gecko_spellcheck:true,paste_text_sticky:true,entity_encoding:"raw",add_unload_trigger:false,remove_linebreaks:false,forced_root_block:"div",content_css:baseurl+"/view/custom_tinymce.css",theme_advanced_path:false,file_browser_callback:"fcFileBrowser"};if(window.editSelect!="none"){$j.extend(tinyMCEInitConfig,editorData);tinyMCE.init(tinyMCEInitConfig)}else if(typeof editorData.plaintextFn=="function"){editorData.plaintextFn()}}var editor=false;var textlen=0;function initEditor(cb){if(editor==false){editor=true;$j("#profile-jot-text-loading").show();var editorData={mode:"specific_textareas",editor_selector:"profile-jot-text",auto_focus:"profile-jot-text",convert_urls:false,setup:function(ed){cPopup=null;ed.onKeyDown.add(function(ed,e){if(cPopup!==null)cPopup.onkey(e)});ed.onKeyUp.add(function(ed,e){var txt=tinyMCE.activeEditor.getContent();match=txt.match(/@([^ \n]+)$/);if(match!==null){if(cPopup===null){cPopup=new ACPopup(this,baseurl+"/acl")}if(cPopup.ready&&match[1]!==cPopup.searchText)cPopup.search(match[1]);if(!cPopup.ready)cPopup=null}else{if(cPopup!==null){cPopup.close();cPopup=null}}textlen=txt.length;if(textlen!=0&&$j("#jot-perms-icon").is(".unlock")){$j("#profile-jot-desc").html(window.isPublic)}else{$j("#profile-jot-desc").html(" ")}if(textlen<=140){$j("#character-counter").removeClass("red");$j("#character-counter").removeClass("orange");$j("#character-counter").addClass("grey")}if(textlen>140&&textlen<=420){$j("#character-counter").removeClass("grey");$j("#character-counter").removeClass("red");$j("#character-counter").addClass("orange")}if(textlen>420){$j("#character-counter").removeClass("grey");$j("#character-counter").removeClass("orange");$j("#character-counter").addClass("red")}$j("#character-counter").text(textlen)});ed.onInit.add(function(ed){ed.pasteAsPlainText=true;$j("#profile-jot-text-loading").hide();$j(".jothidden").show();if(typeof cb!="undefined")cb()})},plaintextFn:function(){$j("#profile-jot-text-loading").hide();$j("#profile-jot-text").css({height:200,color:"#000"});$j("#profile-jot-text").contact_autocomplete(baseurl+"/acl");$j(".jothidden").show();if(typeof cb!="undefined")cb()}};InitMCEEditor(editorData);$j("a#jot-perms-icon").colorbox({inline:true,transition:"elastic"})}else{if(typeof cb!="undefined")cb()}}function enableOnUser(){if(editor)return;$j(this).val("");initEditor()}function msgInitEditor(){var editorData={mode:"specific_textareas",editor_selector:"prvmail-text",convert_urls:false,setup:function(ed){cPopup=null;ed.onKeyDown.add(function(ed,e){if(cPopup!==null)cPopup.onkey(e)});ed.onKeyUp.add(function(ed,e){var txt=tinyMCE.activeEditor.getContent();match=txt.match(/@([^ \n]+)$/);if(match!==null){if(cPopup===null){cPopup=new ACPopup(this,baseurl+"/acl")}if(cPopup.ready&&match[1]!==cPopup.searchText)cPopup.search(match[1]);if(!cPopup.ready)cPopup=null}else{if(cPopup!==null){cPopup.close();cPopup=null}}textlen=txt.length;if(textlen!=0&&$j("#jot-perms-icon").is(".unlock")){$j("#profile-jot-desc").html(window.isPublic)}else{$j("#profile-jot-desc").html(" ")}});ed.onInit.add(function(ed){ed.pasteAsPlainText=true;var editorId=ed.editorId;var textarea=$j("#"+editorId);if(typeof textarea.attr("tabindex")!="undefined"){$j("#"+editorId+"_ifr").attr("tabindex",textarea.attr("tabindex"));textarea.attr("tabindex",null)}})},plaintextFn:function(){$j("#prvmail-text").contact_autocomplete(baseurl+"/acl")}};InitMCEEditor(editorData)}function contactInitEditor(){var editorData={mode:"exact",elements:"contact-edit-info"};InitMCEEditor(editorData)}function eventInitEditor(){var editorData={mode:"textareas",setup:function(ed){ed.onInit.add(function(ed){ed.pasteAsPlainText=true})}};InitMCEEditor(editorData)}function profInitEditor(){var editorData={mode:"textareas",setup:function(ed){ed.onInit.add(function(ed){ed.pasteAsPlainText=true})}};InitMCEEditor(editorData)}function addeditortext(textElem,data){if(window.editSelect=="none"){var currentText=$j(textElem).val();$j(textElem).val(currentText+data)}else tinyMCE.execCommand("mceInsertRawHTML",false,data)}function jotVideoURL(){reply=prompt(window.vidURL);if(reply&&reply.length){addeditortext("#profile-jot-text","[video]"+reply+"[/video]")}}function jotAudioURL(){reply=prompt(window.audURL);if(reply&&reply.length){addeditortext("#profile-jot-text","[audio]"+reply+"[/audio]")}}function jotGetLocation(){reply=prompt(window.whereAreU,$j("#jot-location").val());if(reply&&reply.length){$j("#jot-location").val(reply)}}function jotShare(id){if($j("#jot-popup").length!=0)$j("#jot-popup").show();$j("#like-rotator-"+id).show();$j.get("share/"+id,function(data){if(!editor)$j("#profile-jot-text").val("");initEditor(function(){addeditortext("#profile-jot-text",data);$j("#like-rotator-"+id).hide();$j(window).scrollTop(0)})})}function jotClearLocation(){$j("#jot-coord").val("");$j("#profile-nolocation-wrapper").hide()}function jotGetLink(){reply=prompt(window.linkURL);if(reply&&reply.length){reply=bin2hex(reply);$j("#profile-rotator").show();$j.get("parse_url?binurl="+reply,function(data){addeditortext(window.jotId,data);$j("#profile-rotator").hide()})}}function linkdropper(event){var linkFound=event.dataTransfer.types.contains("text/uri-list");if(linkFound)event.preventDefault()}function linkdrop(event){var reply=event.dataTransfer.getData("text/uri-list");event.preventDefault();if(reply&&reply.length){reply=bin2hex(reply);$j("#profile-rotator").show();$j.get("parse_url?binurl="+reply,function(data){addeditortext(window.jotId,data);$j("#profile-rotator").hide()})}}if(typeof window.geoTag==="function")window.geoTag();function confirmDelete(){return confirm(window.delItem)}function deleteCheckedItems(delID){if(confirm(window.delItems)){var checkedstr="";$j(delID).hide();$j(delID+"-rotator").show();$j(".item-select").each(function(){if($j(this).is(":checked")){if(checkedstr.length!=0){checkedstr=checkedstr+","+$j(this).val()}else{checkedstr=$j(this).val()}}});$j.post("item",{dropitems:checkedstr},function(data){window.location.reload()})}}function itemTag(id){reply=prompt(window.term);if(reply&&reply.length){reply=reply.replace("#","");if(reply.length){commentBusy=true;$j("body").css("cursor","wait");$j.get("tagger/"+id+"?term="+reply,NavUpdate);liking=1}}}function itemFiler(id){var bordercolor=$j("input").css("border-color");$j.get("filer/",function(data){$j.colorbox({html:data});$j.colorbox.resize();$j("#id_term").keypress(function(){$j(this).css("border-color",bordercolor)});$j("#select_term").change(function(){$j("#id_term").css("border-color",bordercolor)});$j("#filer_save").click(function(e){e.preventDefault();reply=$j("#id_term").val();if(reply&&reply.length){commentBusy=true;$j("body").css("cursor","wait");$j.get("filer/"+id+"?term="+reply,NavUpdate);liking=1;$j.colorbox.close()}else{$j("#id_term").css("border-color","#FF0000")}return false})})}function insertFormatting(comment,BBcode,id){var tmpStr=$j("#comment-edit-text-"+id).val();if(tmpStr==comment){tmpStr="";$j("#comment-edit-text-"+id).addClass("comment-edit-text-full");$j("#comment-edit-text-"+id).removeClass("comment-edit-text-empty");openMenu("comment-edit-submit-wrapper-"+id);$j("#comment-edit-text-"+id).val(tmpStr)}textarea=document.getElementById("comment-edit-text-"+id);if(document.selection){textarea.focus();selected=document.selection.createRange();if(BBcode=="url"){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)}else textarea.value=textarea.value.substring(0,start)+"["+BBcode+"]"+textarea.value.substring(start,end)+"[/"+BBcode+"]"+textarea.value.substring(end,textarea.value.length)}return true}function cmtBbOpen(id){$j("#comment-edit-bb-"+id).show()}function cmtBbClose(id){$j("#comment-edit-bb-"+id).hide()}function commentOpen(obj,id){if(obj.value==window.commentEmptyText){obj.value="";$j("#comment-edit-text-"+id).addClass("comment-edit-text-full");$j("#comment-edit-text-"+id).removeClass("comment-edit-text-empty");$j("#mod-cmnt-wrap-"+id).show();openMenu("comment-edit-submit-wrapper-"+id)}}function commentClose(obj,id){if(obj.value==""){obj.value=window.commentEmptyText;$j("#comment-edit-text-"+id).removeClass("comment-edit-text-full");$j("#comment-edit-text-"+id).addClass("comment-edit-text-empty");$j("#mod-cmnt-wrap-"+id).hide();closeMenu("comment-edit-submit-wrapper-"+id)}}function commentInsert(obj,id){var tmpStr=$j("#comment-edit-text-"+id).val();if(tmpStr==window.commentEmptyText){tmpStr="";$j("#comment-edit-text-"+id).addClass("comment-edit-text-full");$j("#comment-edit-text-"+id).removeClass("comment-edit-text-empty");openMenu("comment-edit-submit-wrapper-"+id)}var ins=$j(obj).html();ins=ins.replace("<","<");ins=ins.replace(">",">");ins=ins.replace("&","&");ins=ins.replace(""",'"');$j("#comment-edit-text-"+id).val(tmpStr+ins)}function qCommentInsert(obj,id){var tmpStr=$j("#comment-edit-text-"+id).val();if(tmpStr==window.commentEmptyText){tmpStr="";$j("#comment-edit-text-"+id).addClass("comment-edit-text-full");$j("#comment-edit-text-"+id).removeClass("comment-edit-text-empty");openMenu("comment-edit-submit-wrapper-"+id)}var ins=$j(obj).val();ins=ins.replace("<","<");ins=ins.replace(">",">");ins=ins.replace("&","&");ins=ins.replace(""",'"');$j("#comment-edit-text-"+id).val(tmpStr+ins);$j(obj).val("")}
\ No newline at end of file
diff --git a/view/theme/frost/like_noshare.tpl b/view/theme/frost/like_noshare.tpl
new file mode 100644
index 000000000..5bf94f7df
--- /dev/null
+++ b/view/theme/frost/like_noshare.tpl
@@ -0,0 +1,7 @@
+
diff --git a/view/theme/frost/login-style.css b/view/theme/frost/login-style.css
index 840c404d8..167ebcb27 100644
--- a/view/theme/frost/login-style.css
+++ b/view/theme/frost/login-style.css
@@ -67,11 +67,14 @@ div.section-wrapper {
.field {
margin-bottom: 2px;
padding-bottom: 0px;
+ display: inline-block;
+ text-align: left;
}
.field label {
- width: auto;
- position: absolute;
+ width: 275px;
+ /*position: absolute;*/
+ display: inline-block;
margin-left: 0px;
font-weight: 700;
}
@@ -85,30 +88,43 @@ div.section-wrapper {
position: auto;
/*margin-left: 100px;*/
}
-.field.checkbox input {
+/*.field.checkbox input {
width: auto;
margin-left: 140px;
-}
+}*/
#div_id_remember {
margin-top: 10px;
margin-bottom: 10px;
}
+#div_id_remember label {
+ width: auto;
+ margin-right: 1em;
+}
/*.openid input {*/
-#id_openid_url, .openid input {
+#id_openid_url, input.openid {
background: url(login-bg.gif) no-repeat;
background-position: 0 50%;
width: 182px;
padding-left: 18px;
}
-#wrapper_username input, #wrapper_password input, #wrapper_openid_url input {
+/*#wrapper_username input, #wrapper_password input, #wrapper_openid_url input {
margin-left: 225px;
-}
+}*/
-#register-openid-wrapper input, #register-name-wrapper input, #register-email-wrapper input, #register-nickname-wrapper input {
+/*#register-openid-wrapper input, #register-name-wrapper input, #register-email-wrapper input, #register-nickname-wrapper input {
margin-left: 275px;
+}*/
+
+#register-openid-wrapper {
+ display: inline-block;
+ text-align: left;
+}
+#label-register-openid {
+ display: inline-block;
+ width: 275px;
}
#login-name-wrapper input {
diff --git a/view/theme/frost/login_head.tpl b/view/theme/frost/login_head.tpl
index be70d73d2..25339c327 100644
--- a/view/theme/frost/login_head.tpl
+++ b/view/theme/frost/login_head.tpl
@@ -1,2 +1,2 @@
-
+{##}
diff --git a/view/theme/frost/mail_conv.tpl b/view/theme/frost/mail_conv.tpl
new file mode 100644
index 000000000..97e814e1f
--- /dev/null
+++ b/view/theme/frost/mail_conv.tpl
@@ -0,0 +1,14 @@
+
+
+
+
+
+
$mail.from_name
+
$mail.date
+
$mail.subject
+
$mail.body
+
+
+
+
+
diff --git a/view/theme/frost/mail_list.tpl b/view/theme/frost/mail_list.tpl
new file mode 100644
index 000000000..5be7f3862
--- /dev/null
+++ b/view/theme/frost/mail_list.tpl
@@ -0,0 +1,16 @@
+
+
+
+
+
+
$from_name
+
$date
+
+
+
+
+
+
+
diff --git a/view/theme/frost/msg-end.tpl b/view/theme/frost/msg-end.tpl
index bc6b9a9d5..84448efd5 100644
--- a/view/theme/frost/msg-end.tpl
+++ b/view/theme/frost/msg-end.tpl
@@ -1,9 +1,3 @@
+
-
-
-
-
-
-
+
diff --git a/view/theme/frost/msg-header.tpl b/view/theme/frost/msg-header.tpl
index b10305bd8..c1eabcec7 100644
--- a/view/theme/frost/msg-header.tpl
+++ b/view/theme/frost/msg-header.tpl
@@ -2,9 +2,9 @@
diff --git a/view/theme/frost/nav.tpl b/view/theme/frost/nav.tpl
index adb9c9f07..3c9a4102f 100644
--- a/view/theme/frost/nav.tpl
+++ b/view/theme/frost/nav.tpl
@@ -5,7 +5,7 @@
-
+{##}
{{ if $nav.notifications }}
-
+{##}
-
+
{{ endif }}
-
+{##}
{{ if $nav.messages }}
-
+{##}
{{ endif }}
-
+{##}
@@ -179,7 +179,7 @@ $lbl_about
$lbl_hobbies
-
+