Closed (fixed)
Project:
Ajax
Version:
6.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Feature request
Assigned:
Reporter:
Created:
31 Dec 2008 at 15:48 UTC
Updated:
2 Feb 2009 at 07:30 UTC
Hello, I'm requesting a feature that when a node form is submitted, it does not go to the new page. But simply submits and says [title] posted. The page isn't reloaded.
Thanks.
Comments
Comment #1
brendoncrawford commentedThis would be a bug, not a feature request. So I can fix this, I need you to post two things:
1) Exported CCK content type
2) Firebug console AJAX dump
Thanks,
Brendon
Comment #2
ManyNancy commentedHi, this is the case for all content types, including the out of box ones.
I see POST something in firebug, but then it immediately goes to the page that is posted, so there's no way for me to see what it actually says. Ajax validation works though, just the go to new page behavior is undesired.
Also, how would you export a content type?
Comment #3
brendoncrawford commentedMinqensan,
Oh, I see what you are saying. I misunderstood your request.
My intention is to not interfere with Drupal's default behaviour. Adding this kind of functionality would definitely interfere with Drupal default behaviour. If you want to achieve this functionality, you can add this to your own module, where 'foo' is the name of your module, and 'baz' is the name of the content type you wish to alter:
Comment #4
brendoncrawford commentedMinqensan,
Here is another possible solution that will now work. You can make a JavaScript plugin which handles the actions to perform. This is available in 6.x-1.x-dev which will be updated within 12 hours.