<?php
$a->theme_info = array();
+set_template_engine($a, 'smarty3');
function duepuntozero_init(&$a) {
$a->page['htmlhead'] .= <<< EOT
$("#comment-edit-text-" + id).addClass("comment-edit-text-full");
$("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
openMenu("comment-edit-submit-wrapper-" + id);
- }
+ $("#comment-edit-text-" + id).val(tmpStr);
+ }
textarea = document.getElementById("comment-edit-text-" +id);
if (document.selection) {
return true;
}
-function cmtBbOpen(id) {
- $(".comment-edit-bb-" + id).show();
+function cmtBbOpen(comment, id) {
+ if($(comment).hasClass('comment-edit-text-full')) {
+ $(".comment-edit-bb-" + id).show();
+ return true;
+ }
+ return false;
}
-function cmtBbClose(id) {
- $(".comment-edit-bb-" + id).hide();
+function cmtBbClose(comment, id) {
+// if($(comment).hasClass('comment-edit-text-empty')) {
+// $(".comment-edit-bb-" + id).hide();
+// return true;
+// }
+ return false;
}
$(document).ready(function() {