Skip to content

Commit

Permalink
Prevent flash of unstyled comment form
Browse files Browse the repository at this point in the history
  • Loading branch information
DocSavage committed Aug 26, 2008
1 parent 6fc9d2c commit 4bdc7fd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions static/default/js/bloog_comments.js
Expand Up @@ -25,6 +25,7 @@
YAHOO.bloog.initComments = function() {

var showRTE = function(e) {
YAHOO.util.Dom.removeClass('commentDialog', 'initialHide');
YAHOO.bloog.commentEditor.setEditorHTML('<p>Comment goes here</p>');
YAHOO.bloog.commentDialog.render();
YAHOO.bloog.commentDialog.show();
Expand Down
1 change: 1 addition & 0 deletions static/default/style.css
Expand Up @@ -129,6 +129,7 @@ ul#imgLinks{list-style:none;margin:7px 0;}
p.tags a {font-weight:normal; margin: 0 0.8em; white-space: nowrap; color: #777777; background: transparent url(images/dot.gif) repeat-x scroll left bottom;}

/* style me some comments and inputs */
.initialHide{display:none;}
#comments{padding:12px 0 0 0;}
#comments h3,
h3#respond{color:#555;margin-bottom:7px;}
Expand Down
4 changes: 2 additions & 2 deletions views/default/bloog/blog/form_comment.html
@@ -1,7 +1,7 @@
<style type="text/css">
p span.displaynone { display:none; }
p span.displaynone { display:none; }
</style>
<div id="commentDialog" class="popupDialog">
<div id="commentDialog" class="popupDialog initialHide">
<div class="hd">Enter Your Comment</div>
<div class="bd">
<form id="commentDialogForm" name="commentDialogForm" method="post" action="#">
Expand Down

0 comments on commit 4bdc7fd

Please sign in to comment.