Return-Path: X-Original-To: apmail-incubator-bloodhound-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-bloodhound-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1C346E0C0 for ; Tue, 15 Jan 2013 09:33:21 +0000 (UTC) Received: (qmail 89471 invoked by uid 500); 15 Jan 2013 09:33:21 -0000 Delivered-To: apmail-incubator-bloodhound-commits-archive@incubator.apache.org Received: (qmail 89435 invoked by uid 500); 15 Jan 2013 09:33:20 -0000 Mailing-List: contact bloodhound-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: bloodhound-dev@incubator.apache.org Delivered-To: mailing list bloodhound-commits@incubator.apache.org Received: (qmail 89427 invoked by uid 99); 15 Jan 2013 09:33:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jan 2013 09:33:20 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jan 2013 09:33:16 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id B603923889F7; Tue, 15 Jan 2013 09:32:55 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1433322 [2/2] - in /incubator/bloodhound/branches/bep_0003_multiproduct: ./ bloodhound_dashboard/ bloodhound_multiproduct/ bloodhound_search/ bloodhound_search/bhsearch/ bloodhound_search/bhsearch/templates/ bloodhound_search/bhsearch/test... Date: Tue, 15 Jan 2013 09:32:54 -0000 To: bloodhound-commits@incubator.apache.org From: jure@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130115093255.B603923889F7@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Modified: incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_theme/bhtheme/templates/bh_admin_logging.html URL: http://svn.apache.org/viewvc/incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_theme/bhtheme/templates/bh_admin_logging.html?rev=1433322&r1=1433321&r2=1433322&view=diff ============================================================================== --- incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_theme/bhtheme/templates/bh_admin_logging.html (original) +++ incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_theme/bhtheme/templates/bh_admin_logging.html Tue Jan 15 09:32:53 2013 @@ -46,7 +46,7 @@
- @@ -56,7 +56,7 @@
- @@ -67,11 +67,13 @@
+

+ Note If you specify a + relative path, the log file will be stored inside the + log directory of the project environment + ($log.dir). +

-

- If you specify a relative path, the log file will be stored inside the - log directory of the project environment ($log.dir). -

Milestones + @@ -48,8 +54,9 @@
-
Modified: incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_theme/bhtheme/templates/bh_admin_versions.html URL: http://svn.apache.org/viewvc/incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_theme/bhtheme/templates/bh_admin_versions.html?rev=1433322&r1=1433321&r2=1433322&view=diff ============================================================================== --- incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_theme/bhtheme/templates/bh_admin_versions.html (original) +++ incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_theme/bhtheme/templates/bh_admin_versions.html Tue Jan 15 09:32:53 2013 @@ -27,6 +27,11 @@ Versions + @@ -44,9 +49,9 @@
- +
-
Modified: incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_theme/bhtheme/templates/bh_ticket.html URL: http://svn.apache.org/viewvc/incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_theme/bhtheme/templates/bh_ticket.html?rev=1433322&r1=1433321&r2=1433322&view=diff ============================================================================== --- incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_theme/bhtheme/templates/bh_ticket.html (original) +++ incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_theme/bhtheme/templates/bh_ticket.html Tue Jan 15 09:32:53 2013 @@ -55,7 +55,21 @@ // Install in place editing var modify_elem = $('#modify'); - modify_elem.parent().hide(); + + modify_elem.parent().hide(); + $('#propertyform .buttons [name="preview"]').hide(); + $('#comment').change(function (e) { + $('#hidden-comment').val($('#comment').val()); + }); + $('#propertyform .buttons [name="submit"]').click(function (e) { + if ($('button#edit-submit').length) { + // if available trigger the edit state's update button + $('button#edit-submit').click(); + e.preventDefault(); + } + // otherwise the default submit comment only happens + }); + function modify_ticket() { if ($('#vc-summary').is('.edit-active')) @@ -116,12 +130,19 @@ }) } }); + + // Enable automatic preview + //$('#inplace-propertyform').autoSubmit({preview : 1}, + // full_preview, '#overview .trac-loading') + $('#inplace-propertyform').submit(function() { + $('#hidden-comment').val($('#comment').val()) + }) } function revert_ticket() { $('[data-edit="inplace"]').each(function() { var fc = $(this).removeClass('edit-active'); - fc.html(fc.attr('data-edit-orig')); + fc.html(fc.attr('data-edit-orig')).attr('data-edit-orig', ''); }); } @@ -154,10 +175,8 @@ var comment_focused = false; $("#comment").focus(function() { comment_focused = true; }) .blur(function() { comment_focused = false; }); - $("#propertyform").autoSubmit({preview: '1'}, function(data, reply) { + function full_preview(data, reply) { var items = $(reply); - // Update ticket box - $("#ticket").replaceWith(items.filter('#ticket')); // Unthread, unrevert and update changelog if (!$('#trac-comments-oldest').checked()) $('#trac-comments-oldest').click().change(); @@ -176,7 +195,9 @@ // Collapse property form if comment editor has focus if (show_preview && comment_focused) $("#modify").parent().addClass("collapsed"); - }, "#ticketchange .trac-loading"); + } + $("#propertyform").autoSubmit({preview: '1'}, full_preview, + "#ticketchange .trac-loading"); $("#trac-comment-editor").autoSubmit({preview_comment: '1'}, function(data, reply) { var comment = $("#trac-comment-editor").next("div.comment").html(reply); comment.toggle(comment.children().length != 0); @@ -223,6 +244,8 @@ +