Permalink
Browse files

fixes for root-level comments: "Reply" doesn't erase existing reply, …

…and Quote button removed for root-level
  • Loading branch information...
1 parent 1685fac commit 611bbe556054109f1b1f541d7d539ab4ff83bf27 @pudge pudge committed Mar 12, 2008
@@ -56,7 +56,8 @@ or post as <b>[% user.nickname | strip_literal %]</b>.
<div class="replyto_buttons">
<span id="replyto_buttons_1_[% pid %]">
<input type="button" name="preview_[% pid %]" id="preview_[% pid %]" value="Preview" class="button" onclick="previewReply([% pid %]); return false;">
-<input type="button" name="quotereply_[% pid %]" id="quotereply_[% pid %]" value="Quote Parent" class="button" onclick="quoteReply([% pid %]); return false;">
+[%- IF pid # not for root-level reply %]
+<input type="button" name="quotereply_[% pid %]" id="quotereply_[% pid %]" value="Quote Parent" class="button" onclick="quoteReply([% pid %]); return false;">[% END %]
</span><span id="replyto_buttons_2_[% pid %]" style="display: none">
<input type="button" name="submit_[% pid %]" id="submit_[% pid %]" value="Submit" class="button" onclick="submitReply([% pid %]); return false;">
<input type="button" name="edit_[% pid %]" id="edit_[% pid %]" value="Continue Editing" class="button" onclick="editReply([% pid %]); return false;">
View
@@ -832,7 +832,7 @@ INSERT INTO vars (name, value, description) VALUES ('cur_performance_stat_ops',
INSERT INTO vars (name, value, description) VALUES ('cur_performance_stats_lastid', '0', 'accesslogid to start searching at');
INSERT INTO vars (name, value, description) VALUES ('cur_performance_stats_weeks', '8', 'number of weeks back to compare current stats to');
INSERT INTO vars (name, value, description) VALUES ('currentqid',1,'The Current Question on the homepage pollbooth');
-INSERT INTO vars (name, value, description) VALUES ('cvs_tag_currentcode','T_2_5_0_196','The current cvs tag that the code was updated to - this does not affect site behavior but may be useful for your records');
+INSERT INTO vars (name, value, description) VALUES ('cvs_tag_currentcode','T_2_5_0_197','The current cvs tag that the code was updated to - this does not affect site behavior but may be useful for your records');
INSERT INTO vars (name, value, description) VALUES ('datadir','/usr/local/slash/www.example.com','What is the root of the install for Slash');
INSERT INTO vars (name, value, description) VALUES ('db_auto_increment_increment','1','If your master DB uses auto_increment_increment, i.e. multiple master replication, echo its value into this var');
INSERT INTO vars (name, value, description) VALUES ('dbsparklines_disp','0','Display dbsparklines in the currentAdminUsers box?');
View
@@ -5160,3 +5160,6 @@ UPDATE vars SET value = 'T_2_5_0_196' WHERE name = 'cvs_tag_currentcode';
INSERT INTO ajax_ops VALUES (NULL, 'tags_deactivate', 'Slash::Tags', 'ajaxDeactivateTag', 'ajax_tags_write', 'use');
INSERT INTO vars (name, value, description) VALUES ('tags_prefixlist_minlen', '3', 'Minimum length of a tag prefix to bother looking up suggestions for');
+# 2008-03-12
+UPDATE vars SET value = 'T_2_5_0_197' WHERE name = 'cvs_tag_currentcode';
+
@@ -1060,6 +1060,12 @@ function replyTo(pid) {
if (!replydiv)
return false; // seems we shouldn't be here ...
+ var postercomment = $('postercomment_' + pid);
+ if (postercomment) {
+ postercomment.focus(); // already have one, bail
+ return false;
+ }
+
var params = [];
params['op'] = 'comments_reply_form';
params['pid'] = pid;

0 comments on commit 611bbe5

Please sign in to comment.