From c8957b36ea11a41604330c8f87c0fc0611ef18e6 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 10 Sep 2012 22:00:56 -0700 Subject: permissions responder + upstream merge --- view/theme/duepuntozero/css/style.css | 18 +++++++++++++++--- view/theme/duepuntozero/php/theme.php | 14 +++++++++++--- view/tpl/comment_item.tpl | 9 ++++----- view/tpl/wall_thread.tpl | 6 ++++++ 4 files changed, 36 insertions(+), 11 deletions(-) (limited to 'view') diff --git a/view/theme/duepuntozero/css/style.css b/view/theme/duepuntozero/css/style.css index 34360aacf..f2edad499 100644 --- a/view/theme/duepuntozero/css/style.css +++ b/view/theme/duepuntozero/css/style.css @@ -952,7 +952,6 @@ input#dfrn-url { position: relative; -moz-border-radius: 3px; border-radius: 3px; - } .tread-wrapper .tread-wrapper { @@ -1210,6 +1209,10 @@ input#dfrn-url { width: 100px; float: left; } +.comment-wwedit-wrapper.threaded > .comment-edit-form > .comment-edit-photo { + width: 40px; +} + .comment-edit-photo img { width: 25px; } @@ -1229,6 +1232,10 @@ input#dfrn-url { margin: 10px 0px 10px 110px; } +.comment-wwedit-wrapper.threaded > .comment-edit-form > .comment-edit-submit-wrapper > .comment-edit-submit { + margin-left: 50px; +} + #profile-jot-plugin-wrapper, #profile-jot-submit-wrapper { margin-top: 15px; @@ -1772,12 +1779,16 @@ input#dfrn-url { .comment-edit-text-empty { color: gray; - height: 30px; + height: 5em; width: 175px; overflow: auto; margin-bottom: 10px; } +.comment-wwedit-wrapper.threaded > .comment-edit-form > .comment-edit-text-empty { + height: 1.5em; +} + .comment-edit-text-full { color: black; height: 150px; @@ -3088,7 +3099,8 @@ aside input[type='text'] { [class^="comment-edit-bb"] { list-style: none; display: none; - margin: 0px 0 -5px 60px; + margin: 0px 0 -5px 0px; + padding: 0px; width: 75%; } [class^="comment-edit-bb"] > li { diff --git a/view/theme/duepuntozero/php/theme.php b/view/theme/duepuntozero/php/theme.php index e42c2b7b4..a1d436a4b 100644 --- a/view/theme/duepuntozero/php/theme.php +++ b/view/theme/duepuntozero/php/theme.php @@ -34,11 +34,19 @@ 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(comment, id) { - $(".comment-edit-bb-" + id).hide(); + if($(comment).hasClass('comment-edit-text-empty')) { + $(".comment-edit-bb-" + id).hide(); + return true; + } + return false; } $(document).ready(function() { diff --git a/view/tpl/comment_item.tpl b/view/tpl/comment_item.tpl index 98173aa30..3de24ca8d 100644 --- a/view/tpl/comment_item.tpl +++ b/view/tpl/comment_item.tpl @@ -1,10 +1,9 @@ + {{ if $threaded }} +
+ {{ else }}
- {{ if $threaded }} - $comment -