[Bps-public-commit] r20007 - in RT-Extension-QuickResolve/html: Callbacks/RT-Extension-QuickDelete Callbacks/RT-Extension-QuickResolve
jesse at bestpractical.com
jesse at bestpractical.com
Wed Jun 17 18:25:31 EDT 2009
Author: jesse
Date: Wed Jun 17 18:25:31 2009
New Revision: 20007
Added:
RT-Extension-QuickResolve/html/Callbacks/RT-Extension-QuickResolve/
- copied from r20006, /RT-Extension-QuickResolve/html/Callbacks/RT-Extension-QuickDelete/
RT-Extension-QuickResolve/html/RT-Extension-QuickDelete/ToggleQuickResolve
- copied unchanged from r20004, /RT-Extension-QuickResolve/html/RT-Extension-QuickDelete/ToggleQuickDelete
Removed:
RT-Extension-QuickResolve/html/Callbacks/RT-Extension-QuickDelete/
RT-Extension-QuickResolve/html/RT-Extension-QuickDelete/ToggleQuickDelete
Modified:
RT-Extension-QuickResolve/html/RT-Extension-QuickDelete/Toggle
Log:
cehckpoint
Modified: RT-Extension-QuickResolve/html/RT-Extension-QuickDelete/Toggle
==============================================================================
--- RT-Extension-QuickResolve/html/RT-Extension-QuickDelete/Toggle (original)
+++ RT-Extension-QuickResolve/html/RT-Extension-QuickDelete/Toggle Wed Jun 17 18:25:31 2009
@@ -1,10 +1,9 @@
<%init>
my $ticket =LoadTicket($id);
-if ($toggle && $ticket->Status eq 'deleted') {
+if ($toggle && $ticket->Status eq 'resolved') {
$ticket->SetStatus('open');
} elsif ($toggle) {
-
-$ticket->SetStatus('deleted');
+$ticket->SetStatus('resolved');
}
</%init>
@@ -13,12 +12,12 @@
$toggle => 0
</%args>
<span id="toggle-<%$id%>">
-% my $url = $RT::WebPath."/RT-Extension-QuickDelete/ToggleQuickDelete?id=".$id;
+% my $url = $RT::WebPath."/RT-Extension-QuickResolve/ToggleQuickResolve?id=".$id;
<a align="right" href="<%$url|n%>" onClick="ahah('<%$url|n%>', 'toggle-<%$id|n%>'); return false;" >
-% if ($ticket->Status ne 'deleted') {
-Delete
+% if ($ticket->Status ne 'resolved') {
+Quick Resolve
% } else {
-Undelete
+Quick Reopen
% }
</a>
</span>
More information about the Bps-public-commit
mailing list