Skip Menu |
 

This queue is for tickets about the Jifty CPAN distribution.

Report information
The Basics
Id: 46800
Status: resolved
Priority: 0/
Queue: Jifty

People
Owner: Nobody in particular
Requestors: jifty-devel [...] lists.jifty.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: [jifty-devel] Order of Actions in Request
Date: Tue, 09 Jun 2009 17:54:56 +0200
To: Nifty apps in a Jiffy <jifty-devel [...] lists.jifty.org>
From: Eric-Christian Koch <koch [...] schaffhausen.de>
Download (untitled) / with headers
text/plain 1.3k
Hello, i wonder if someone of you can give me a hint. In my template i created some actions with giving them an order value. @actions = ( $record1->as_update_action( order => 1), $record2->as_update_action( order => 2) ) And added them to a link: onclick => [ { submit => \@actions ... However, the order value did not make it into the JSON as the request was send to the server. So it was undef while processed in Jifty::Request. After some debuging i added the following javascript code to the Action.data_structur function: Action.prototype.data_structure = function() { var a = {}; a['moniker'] = this.moniker; a['class'] = this.actionClass; if (this.register && this.register.id) { var tmp = this.register.id.match(/^J:A-(\d+)-/); if (tmp.length == 2) a['order'] = tmp[1]; } .... Now the JSON, send by the ajax request, contains the order value and the actions are executed in the correct order. Still, i dont know if i probably misunderstood something about the order option. I would realy like to know if someone of you has figured out how it is supposed to work. PS: Sorry for my bad english. ;) Thanks in advance, Eric Show quoted text
_______________________________________________ jifty-devel mailing list jifty-devel@lists.jifty.org http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel
Committed as r7276.
Subject: Re: [jifty-devel] [rt.cpan.org #46800] Resolved: Order of Actions in Request
Date: Sat, 27 Jun 2009 20:43:50 -0700
To: bug-Jifty [...] rt.cpan.org, Nifty apps in a Jiffy <jifty-devel [...] lists.jifty.org>
From: Randall Marbach <remarbach [...] gmail.com>
Download (untitled) / with headers
text/plain 475b
SzÉ On 6/17/09, Alex Vandiver via RT <bug-Jifty@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=46800 > > > According to our records, your request has been resolved. If you have any > further questions or concerns, please respond to this message. > _______________________________________________ > jifty-devel mailing list > jifty-devel@lists.jifty.org > http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel >
-- Sent from my mobile device
Subject: Re: [jifty-devel] [rt.cpan.org #46800] Resolved: Order of Actions in Request
Date: Sat, 27 Jun 2009 21:03:25 -0700
To: bug-Jifty [...] rt.cpan.org, Nifty apps in a Jiffy <jifty-devel [...] lists.jifty.org>
From: Randall Marbach <remarbach [...] gmail.com>
Download (untitled) / with headers
text/plain 475b
AWé On 6/17/09, Alex Vandiver via RT <bug-Jifty@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=46800 > > > According to our records, your request has been resolved. If you have any > further questions or concerns, please respond to this message. > _______________________________________________ > jifty-devel mailing list > jifty-devel@lists.jifty.org > http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel >
-- Sent from my mobile device


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.