incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject git commit: [#4530] ticket:179 transfer text from ticket comment to edit ticket post
Date Fri, 28 Sep 2012 17:11:44 GMT
Updated Branches:
  refs/heads/master edd11ab01 -> ee5eb274d


[#4530] ticket:179 transfer text from ticket comment to edit ticket post


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/ee5eb274
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/ee5eb274
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/ee5eb274

Branch: refs/heads/master
Commit: ee5eb274da56389010331acc11ac6b8b048f2fc1
Parents: edd11ab
Author: Anton Kasyanov <mind1master@gmail.com>
Authored: Thu Sep 27 19:32:17 2012 +0300
Committer: Dave Brondsema <dbrondsema@geek.net>
Committed: Fri Sep 28 17:11:35 2012 +0000

----------------------------------------------------------------------
 .../forgetracker/templates/tracker/ticket.html     |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/ee5eb274/ForgeTracker/forgetracker/templates/tracker/ticket.html
----------------------------------------------------------------------
diff --git a/ForgeTracker/forgetracker/templates/tracker/ticket.html b/ForgeTracker/forgetracker/templates/tracker/ticket.html
index 137bd2f..72de788 100644
--- a/ForgeTracker/forgetracker/templates/tracker/ticket.html
+++ b/ForgeTracker/forgetracker/templates/tracker/ticket.html
@@ -159,8 +159,10 @@
           var title_holder = $('h2.dark');
           var original_title = title_holder.text();
           var title_actions = title_holder.find('small');
-          var vote = $('#vote')
+          var vote = $('#vote');
+          var discussion_comment_textarea = $('#new_post_holder').find('form').find('textarea');
           $('a.edit_ticket').click(function () {
+            var not_posted_comment = discussion_comment_textarea.val();
             form_holder.show();
             view_holder.hide();
             discussion_holder.hide();
@@ -171,6 +173,7 @@
             vote.hide();
             $('a.edit_ticket').addClass('btn_activate');
             $('textarea[name="ticket_form.description"]').trigger('editticket.forgetracker').focus();
+            $('textarea[name="ticket_form.comment"]').val(not_posted_comment);
             $(this).trigger('editTicket');
             return false;
           });


Mime
View raw message