• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item4374: Able to change status of action with AJAX

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension ActionTrackerPlugin Enhancement Closed   n/a  

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

Able to change status of action with AJAX

-- TWiki:Main.RobertGraff

It depends on exactly what you want. I have been working on the assumption that the behaviour you require is something like this:

  1. Use clicks on status of an action in the browser
  2. A drop-down appears offering all possible states; user selects on
  3. State is changed silently in the background, without requiring a page refresh
CC

That's a fine approach. I was actually thinking of something a little simpler. Instead of displaying a dropdown, simply advance to the next state. If at the end of the list, go to the front. Our states are: pending, open, completed, closed. So if it's pending, clicking status would make it "open". If it's "closed", clicking on the status would make it "pending".

-- TWiki:Main.RobertGraff

Ah, "advance to the next state" assumes some ordering over the state set. I don't think that ordering can be assumed to be available when the 'AJAX' (actually a REST handler) runs.

CC

It would be very useful if there was a class associated with each status state and have that class update as well. I think it would most useful for the class to be on the table row.

-- TWiki:Main.RobertGraff

You mean a CSS class, presumably. That's a bit more fiddly, but can be done.

-- TWiki:Main/CrawfordCurrie - 17 Jul 2007

Done

CC

ItemTemplate
Summary Able to change status of action with AJAX
ReportedBy TWiki:Main.RobertGraff
Codebase

SVN Range TWiki-4.1.2, Tue, 17 Jul 2007, build 14423
AppliesTo Extension
Component ActionTrackerPlugin
Priority Enhancement
CurrentState Closed
WaitingFor

Checkins TWikirev:14456 TWikirev:14481
TargetRelease n/a
ReleasedIn

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2007-09-02 - KennethLavrsen
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback