[geeklog-hg] geeklog: #commentpreview now used on all comments preview (neede...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Fri Jun 21 15:32:33 EDT 2013


changeset 9109:743787913526
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/743787913526
user: Tom <websitemaster at cogeco.net>
date: Fri Jun 21 13:56:57 2013 -0400
description:
#commentpreview now used on all comments preview (needed when comment replies are enabled). Fixed spelling (bug #0001628)

diffstat:

 public_html/layout/denim/css_ltr/style.css |  2 +-
 public_html/layout/denim/css_rtl/style.css |  2 +-
 public_html/layout/professional/style.css  |  2 +-
 system/lib-comment.php                     |  6 +++---
 4 files changed, 6 insertions(+), 6 deletions(-)

diffs (60 lines):

diff -r be215fb503a7 -r 743787913526 public_html/layout/denim/css_ltr/style.css
--- a/public_html/layout/denim/css_ltr/style.css	Thu Jun 20 06:41:29 2013 -0400
+++ b/public_html/layout/denim/css_ltr/style.css	Fri Jun 21 13:56:57 2013 -0400
@@ -1884,7 +1884,7 @@
   margin: 0.5em 0 1em;
 }
 
-#commentperview {
+#commentpreview {
   margin:0;
   background:transparent;
   border:1px dashed grey;
diff -r be215fb503a7 -r 743787913526 public_html/layout/denim/css_rtl/style.css
--- a/public_html/layout/denim/css_rtl/style.css	Thu Jun 20 06:41:29 2013 -0400
+++ b/public_html/layout/denim/css_rtl/style.css	Fri Jun 21 13:56:57 2013 -0400
@@ -1884,7 +1884,7 @@
   margin: 0.5em 0 1em;
 }
 
-#commentperview {
+#commentpreview {
   margin:0;
   background:transparent;
   border:1px dashed grey;
diff -r be215fb503a7 -r 743787913526 public_html/layout/professional/style.css
--- a/public_html/layout/professional/style.css	Thu Jun 20 06:41:29 2013 -0400
+++ b/public_html/layout/professional/style.css	Fri Jun 21 13:56:57 2013 -0400
@@ -437,7 +437,7 @@
   margin-top:5px;
   margin-bottom:5px;
 }
-#commentperview {
+#commentpreview {
   margin:0;
   background:transparent;
   border:1px dashed grey;
diff -r be215fb503a7 -r 743787913526 system/lib-comment.php
--- a/system/lib-comment.php	Thu Jun 20 06:41:29 2013 -0400
+++ b/system/lib-comment.php	Fri Jun 21 13:56:57 2013 -0400
@@ -968,7 +968,7 @@
                 $start = COM_newTemplate($_CONF['path_layout'] . 'comment');
                 $start->set_file(array('comment' => 'startcomment.thtml'));
                 $start->set_var('hide_if_preview', 'style="display:none"');
-                $start->set_var( 'area_id', 'commentperview' );
+                $start->set_var( 'area_id', 'commentpreview' );
 
                 // Clean up all the vars
                 $A = array();
@@ -1080,9 +1080,9 @@
                     $sid = str_replace('fileid_', '', $sid);
                 }
 
-                $formurl = "$plgurl?$plgid=$sid#commentperview";
+                $formurl = "$plgurl?$plgid=$sid#commentpreview";
             } else {
-                $formurl = $_CONF['site_url'] . '/comment.php';
+                $formurl = $_CONF['site_url'] . '/comment.php#commentpreview'; // commentpreview needed for when showing replies on the same page
             }
 
             if ($mode == 'edit' || $mode == $LANG03[28]) { //edit modes



More information about the geeklog-cvs mailing list