Skip to content

Commit

Permalink
add the project meta select options AJAX population to new ticket form.
Browse files Browse the repository at this point in the history
  • Loading branch information
seanchen committed Feb 15, 2013
1 parent d0e9b0d commit 88b11aa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion wp-trac-client/css/trac_ticket.css
Expand Up @@ -396,7 +396,7 @@ h1 span, h2 span { color: gray; font-size: 90%;}

/* for ticket finder */
#findTicket {
height: 28px;
height: 45px;
padding: 10px 2px 2px 5px;
}
#ticketnumber {
Expand Down
4 changes: 1 addition & 3 deletions wp-trac-client/templates/page-tickets.php
Expand Up @@ -29,9 +29,7 @@
<h2 class='widgettitle'>
Project: <b><?php echo $project;?></b>
</h2>
<p>
<?php echo wptc_widget_version_nav($project)?>
</p>
<?php echo wptc_widget_version_nav($project)?>
</div>
<div id='ticket-finder' class="widget">
<h2 class='widgettitle'>Ticket Finder</h2>
Expand Down
4 changes: 4 additions & 0 deletions wp-trac-client/widgets.php
Expand Up @@ -230,6 +230,9 @@ function wptc_widget_ticket_finder($page_slug=null) {
<input id="ticketGo" type="image" alt="Go to Ticket"
name="ticketGo" src="{$goImageUrl}"
title="Go to Ticket">
<p><br/><b>
<a href="{$blog_path}{$page_slug}">Create New Ticket</a>
</b></p>
<script type="text/javascript" charset="utf-8">
jQuery("#ticketGo").click(function(){
Expand Down Expand Up @@ -934,6 +937,7 @@ function wptc_widget_new_ticket_form() {
EOT;
// pass a not set variable
echo wptc_widget_ticket_fieldset($ticket);
echo wptc_widget_ticket_fieldset_js();
echo <<<EOT
</div>
<div class="buttons">
Expand Down

0 comments on commit 88b11aa

Please sign in to comment.