2 $a->theme_info = array(
3 'extends' => 'duepuntozero',
6 function slackr_init(&$a) {
7 $a->page['htmlhead'] .= <<< EOT
9 function insertFormatting(comment,BBcode,id) {
11 var tmpStr = $("#comment-edit-text-" + id).val();
12 if(tmpStr == comment) {
14 $("#comment-edit-text-" + id).addClass("comment-edit-text-full");
15 $("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
16 openMenu("comment-edit-submit-wrapper-" + id);
17 $("#comment-edit-text-" + id).val(tmpStr);
21 textarea = document.getElementById("comment-edit-text-" +id);
22 if (document.selection) {
24 selected = document.selection.createRange();
26 selected.text = "["+BBcode+"]" + "http://" + selected.text + "[/"+BBcode+"]";
28 selected.text = "["+BBcode+"]" + selected.text + "[/"+BBcode+"]";
29 } else if (textarea.selectionStart || textarea.selectionStart == "0") {
30 var start = textarea.selectionStart;
31 var end = textarea.selectionEnd;
33 textarea.value = textarea.value.substring(0, start) + "["+BBcode+"]" + "http://" + textarea.value.substring(start, end) + "[/"+BBcode+"]" + textarea.value.substring(end, textarea.value.length);
35 textarea.value = textarea.value.substring(0, start) + "["+BBcode+"]" + textarea.value.substring(start, end) + "[/"+BBcode+"]" + textarea.value.substring(end, textarea.value.length);
40 function cmtBbOpen(id) {
41 $(".comment-edit-bb-" + id).show();
43 function cmtBbClose(id) {
44 $(".comment-edit-bb-" + id).hide();
52 $(document).ready(function() {
54 $("#profile-jot-text").focus(hidecal);
55 $("#profile-jot-text").click(hidecal);
57 $('html').click(function() { $("#nav-notifications-menu" ).hide(); });
59 $('.group-edit-icon').hover(
61 $(this).addClass('icon'); $(this).removeClass('iconspacer');},
63 $(this).removeClass('icon'); $(this).addClass('iconspacer');}
66 $('.sidebar-group-element').hover(
68 id = $(this).attr('id');
69 $('#edit-' + id).addClass('icon'); $('#edit-' + id).removeClass('iconspacer');},
72 id = $(this).attr('id');
73 $('#edit-' + id).removeClass('icon');$('#edit-' + id).addClass('iconspacer');}
77 $('.savedsearchdrop').hover(
79 $(this).addClass('drop'); $(this).addClass('icon'); $(this).removeClass('iconspacer');},
81 $(this).removeClass('drop'); $(this).removeClass('icon'); $(this).addClass('iconspacer');}
84 $('.savedsearchterm').hover(
86 id = $(this).attr('id');
87 $('#drop-' + id).addClass('icon'); $('#drop-' + id).addClass('drophide'); $('#drop-' + id).removeClass('iconspacer');},
90 id = $(this).attr('id');
91 $('#drop-' + id).removeClass('icon');$('#drop-' + id).removeClass('drophide'); $('#drop-' + id).addClass('iconspacer');}