Browse Source

bring back comment edit buttons

pull/464/merge
friendica 9 years ago
parent
commit
fa65db9aa1
2 changed files with 14 additions and 5 deletions
  1. +1
    -1
      view/theme/duepuntozero/style.css
  2. +13
    -4
      view/theme/slackr/theme.php

+ 1
- 1
view/theme/duepuntozero/style.css View File

@ -1765,7 +1765,7 @@ input#dfrn-url {
.comment-edit-text-empty {
color: gray;
height: 5em;
height: 2em;
width: 175px;
overflow: auto;
margin-bottom: 10px;


+ 13
- 4
view/theme/slackr/theme.php View File

@ -37,13 +37,22 @@ function insertFormatting(comment,BBcode,id) {
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;
}
function hidecal() {
if(editor) return;
$('.fc').hide();


Loading…
Cancel
Save