[aur-dev] [PATCH] FS#3542 - auto redirect from confirmation screens
Hi, this patch is adding meta refresh tag and a link back to the package page from the screens that confirm comment deletion and change of package category. The link is displayed always, but the autoredirection is done only when the action was sucessfull. This allows user to read or note down a possible error output in case of failure. The delay for refresh is set to 5 seconds, but that can be discussed. Dan -- --------------------------------- Dan Vrátil vratil@progdansoft.com ICQ 249163429 Jabber progdan@jabber.cz Tel. +420 732 326 870 Tento email neobsahuje žádné viry, protože odesílatel nepoužívá Windows. / This email does not contain any viruses because the sender does not use Windows.
On Sat 31 Jul 2010 17:54 +0200, Dan Vratil wrote:
this patch is adding meta refresh tag and a link back to the package page from the screens that confirm comment deletion and change of package category.
The link is displayed always, but the autoredirection is done only when the action was sucessfull. This allows user to read or note down a possible error output in case of failure.
The delay for refresh is set to 5 seconds, but that can be discussed.
This isn't consistent with the way the other 'redirection' is performed. It would be preferable to just load on the package page with a message at the top saying that the comment was deleted. Please have a look at how flagging, orphaning, and adopting work. It probably will take more effort to implement, but it's the proper solution that will work with all web browsers. Thanks for you contributions!
On Saturday 31 July 2010 18:26:59 Loui Chang wrote:
On Sat 31 Jul 2010 17:54 +0200, Dan Vratil wrote:
this patch is adding meta refresh tag and a link back to the package page from the screens that confirm comment deletion and change of package category.
The link is displayed always, but the autoredirection is done only when the action was sucessfull. This allows user to read or note down a possible error output in case of failure.
The delay for refresh is set to 5 seconds, but that can be discussed.
This isn't consistent with the way the other 'redirection' is performed. It would be preferable to just load on the package page with a message at the top saying that the comment was deleted.
Please have a look at how flagging, orphaning, and adopting work. It probably will take more effort to implement, but it's the proper solution that will work with all web browsers.
Thanks for you contributions!
Sure, I thought it won't be that easy :) I've finished deleting comments and now I'm thinking about where to put the code for the form for changing the package category and I got an idea, that the best solution would be to replace the link with the current category name by a combobox with list of categories and the text "(change category)" by a button with the same text that would submit the new category directly. This would also allow me to remove the pkgedit.php script entirely. What do you think about? I don't want to make such a big change in layout without permission :) Thanks Dan -- --------------------------------- Dan Vrátil vratil@progdansoft.com ICQ 249163429 Jabber progdan@jabber.cz Tel. +420 732 326 870 Tento email neobsahuje žádné viry, protože odesílatel nepoužívá Windows. / This email does not contain any viruses because the sender does not use Windows.
On Sat 31 Jul 2010 21:10 +0200, Dan Vratil wrote:
On Saturday 31 July 2010 18:26:59 Loui Chang wrote:
On Sat 31 Jul 2010 17:54 +0200, Dan Vratil wrote:
this patch is adding meta refresh tag and a link back to the package page from the screens that confirm comment deletion and change of package category.
The link is displayed always, but the autoredirection is done only when the action was sucessfull. This allows user to read or note down a possible error output in case of failure.
The delay for refresh is set to 5 seconds, but that can be discussed.
This isn't consistent with the way the other 'redirection' is performed. It would be preferable to just load on the package page with a message at the top saying that the comment was deleted.
Please have a look at how flagging, orphaning, and adopting work. It probably will take more effort to implement, but it's the proper solution that will work with all web browsers.
Thanks for you contributions!
Sure, I thought it won't be that easy :)
I've finished deleting comments and now I'm thinking about where to put the code for the form for changing the package category and I got an idea, that the best solution would be to replace the link with the current category name by a combobox with list of categories and the text "(change category)" by a button with the same text that would submit the new category directly. This would also allow me to remove the pkgedit.php script entirely.
What do you think about? I don't want to make such a big change in layout without permission :)
Sounds like a good idea to me.
On Saturday 31 July 2010 21:29:46 Loui Chang wrote:
On Sat 31 Jul 2010 21:10 +0200, Dan Vratil wrote:
On Saturday 31 July 2010 18:26:59 Loui Chang wrote:
On Sat 31 Jul 2010 17:54 +0200, Dan Vratil wrote:
this patch is adding meta refresh tag and a link back to the package page from the screens that confirm comment deletion and change of package category.
The link is displayed always, but the autoredirection is done only when the action was sucessfull. This allows user to read or note down a possible error output in case of failure.
The delay for refresh is set to 5 seconds, but that can be discussed.
This isn't consistent with the way the other 'redirection' is performed. It would be preferable to just load on the package page with a message at the top saying that the comment was deleted.
Please have a look at how flagging, orphaning, and adopting work. It probably will take more effort to implement, but it's the proper solution that will work with all web browsers.
Thanks for you contributions!
Sure, I thought it won't be that easy :)
I've finished deleting comments and now I'm thinking about where to put the code for the form for changing the package category and I got an idea, that the best solution would be to replace the link with the current category name by a combobox with list of categories and the text "(change category)" by a button with the same text that would submit the new category directly. This would also allow me to remove the pkgedit.php script entirely.
What do you think about? I don't want to make such a big change in layout without permission :)
Sounds like a good idea to me.
So here comes another revision :-) -- --------------------------------- Dan Vrátil vratil@progdansoft.com ICQ 249163429 Jabber progdan@jabber.cz Tel. +420 732 326 870 Tento email neobsahuje žádné viry, protože odesílatel nepoužívá Windows. / This email does not contain any viruses because the sender does not use Windows.
On Saturday 31 July 2010 21:47:29 Dan Vratil wrote:
On Saturday 31 July 2010 21:29:46 Loui Chang wrote:
On Sat 31 Jul 2010 21:10 +0200, Dan Vratil wrote:
On Saturday 31 July 2010 18:26:59 Loui Chang wrote:
On Sat 31 Jul 2010 17:54 +0200, Dan Vratil wrote:
this patch is adding meta refresh tag and a link back to the package page from the screens that confirm comment deletion and change of package category.
The link is displayed always, but the autoredirection is done only when the action was sucessfull. This allows user to read or note down a possible error output in case of failure.
The delay for refresh is set to 5 seconds, but that can be discussed.
This isn't consistent with the way the other 'redirection' is performed. It would be preferable to just load on the package page with a message at the top saying that the comment was deleted.
Please have a look at how flagging, orphaning, and adopting work. It probably will take more effort to implement, but it's the proper solution that will work with all web browsers.
Thanks for you contributions!
Sure, I thought it won't be that easy :)
I've finished deleting comments and now I'm thinking about where to put the code for the form for changing the package category and I got an idea, that the best solution would be to replace the link with the current category name by a combobox with list of categories and the text "(change category)" by a button with the same text that would submit the new category directly. This would also allow me to remove the pkgedit.php script entirely.
What do you think about? I don't want to make such a big change in layout without permission :)
Sounds like a good idea to me.
So here comes another revision :-)
Hi, I'm just curious about state of the patch? Is it OK or do I have to make any changes? Dan -- --------------------------------- Dan Vrátil vratil@progdansoft.com ICQ 249163429 Jabber progdan@jabber.cz Tel. +420 732 326 870 Tento email neobsahuje žádné viry, protože odesílatel nepoužívá Windows. / This email does not contain any viruses because the sender does not use Windows.
On Mon 16 Aug 2010 18:50 +0200, Dan Vratil wrote:
On Saturday 31 July 2010 21:47:29 Dan Vratil wrote:
So here comes another revision :-)
I'm just curious about state of the patch? Is it OK or do I have to make any changes?
Ah sorry I must have missed it. I'll have to let you know later.
On Tue, 17 Aug 2010 06:43:06 -0400, Loui Chang <louipc.ist@gmail.com> wrote:
On Mon 16 Aug 2010 18:50 +0200, Dan Vratil wrote:
On Saturday 31 July 2010 21:47:29 Dan Vratil wrote:
So here comes another revision :-)
I'm just curious about state of the patch? Is it OK or do I have to make any changes?
Ah sorry I must have missed it. I'll have to let you know later.
Hi, I'm just reminding the patch, you probably forgot about it :) The mail with patches is here: http://mailman.archlinux.org/pipermail/aur-dev/2010-July/001130.html -- -- Dan Vrátil vratil@progdansoft.com Tel: +4202 732 326 870 Jabber: progdan@jabber.cz
On Mon 20 Sep 2010 15:17 +0200, Dan Vrátil wrote:
On Tue, 17 Aug 2010 06:43:06 -0400, Loui Chang <louipc.ist@gmail.com> wrote:
On Mon 16 Aug 2010 18:50 +0200, Dan Vratil wrote:
On Saturday 31 July 2010 21:47:29 Dan Vratil wrote:
So here comes another revision :-)
I'm just curious about state of the patch? Is it OK or do I have to make any changes?
Ah sorry I must have missed it. I'll have to let you know later.
Hi, I'm just reminding the patch, you probably forgot about it :)
The mail with patches is here: http://mailman.archlinux.org/pipermail/aur-dev/2010-July/001130.html
Thanks for the reminder. It is in my queue now.
On Mon 20 Sep 2010 15:17 +0200, Dan Vrátil wrote:
On Tue, 17 Aug 2010 06:43:06 -0400, Loui Chang <louipc.ist@gmail.com> wrote:
On Mon 16 Aug 2010 18:50 +0200, Dan Vratil wrote:
On Saturday 31 July 2010 21:47:29 Dan Vratil wrote:
So here comes another revision :-)
I'm just curious about state of the patch? Is it OK or do I have to make any changes?
Ah sorry I must have missed it. I'll have to let you know later.
Hi, I'm just reminding the patch, you probably forgot about it :)
The mail with patches is here: http://mailman.archlinux.org/pipermail/aur-dev/2010-July/001130.html
Alright! It's finally submitted, with a couple of fixes. Thanks again.
participants (3)
-
Dan Vratil
-
Dan Vrátil
-
Loui Chang