2 $a->theme_info = array();
4 function duepuntozero_init(&$a) {
5 $a->page['htmlhead'] .= <<< EOT
7 function insertFormatting(comment,BBcode,id) {
9 var tmpStr = $("#comment-edit-text-" + id).val();
10 if(tmpStr == comment) {
12 $("#comment-edit-text-" + id).addClass("comment-edit-text-full");
13 $("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
14 openMenu("comment-edit-submit-wrapper-" + id);
15 $("#comment-edit-text-" + id).val(tmpStr);
18 textarea = document.getElementById("comment-edit-text-" +id);
19 if (document.selection) {
21 selected = document.selection.createRange();
23 selected.text = "["+BBcode+"]" + "http://" + selected.text + "[/"+BBcode+"]";
25 selected.text = "["+BBcode+"]" + selected.text + "[/"+BBcode+"]";
26 } else if (textarea.selectionStart || textarea.selectionStart == "0") {
27 var start = textarea.selectionStart;
28 var end = textarea.selectionEnd;
30 textarea.value = textarea.value.substring(0, start) + "["+BBcode+"]" + "http://" + textarea.value.substring(start, end) + "[/"+BBcode+"]" + textarea.value.substring(end, textarea.value.length);
32 textarea.value = textarea.value.substring(0, start) + "["+BBcode+"]" + textarea.value.substring(start, end) + "[/"+BBcode+"]" + textarea.value.substring(end, textarea.value.length);
37 function cmtBbOpen(id) {
38 $(".comment-edit-bb-" + id).show();
40 function cmtBbClose(id) {
41 $(".comment-edit-bb-" + id).hide();
43 $(document).ready(function() {
45 $('html').click(function() { $("#nav-notifications-menu" ).hide(); });
47 $('.group-edit-icon').hover(
49 $(this).addClass('icon'); $(this).removeClass('iconspacer');},
51 $(this).removeClass('icon'); $(this).addClass('iconspacer');}
54 $('.sidebar-group-element').hover(
56 id = $(this).attr('id');
57 $('#edit-' + id).addClass('icon'); $('#edit-' + id).removeClass('iconspacer');},
60 id = $(this).attr('id');
61 $('#edit-' + id).removeClass('icon');$('#edit-' + id).addClass('iconspacer');}
65 $('.savedsearchdrop').hover(
67 $(this).addClass('drop'); $(this).addClass('icon'); $(this).removeClass('iconspacer');},
69 $(this).removeClass('drop'); $(this).removeClass('icon'); $(this).addClass('iconspacer');}
72 $('.savedsearchterm').hover(
74 id = $(this).attr('id');
75 $('#drop-' + id).addClass('icon'); $('#drop-' + id).addClass('drophide'); $('#drop-' + id).removeClass('iconspacer');},
78 id = $(this).attr('id');
79 $('#drop-' + id).removeClass('icon');$('#drop-' + id).removeClass('drophide'); $('#drop-' + id).addClass('iconspacer');}