Closed (fixed)
Project:
Hide submit button
Version:
5.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
10 Mar 2009 at 21:41 UTC
Updated:
8 Nov 2009 at 22:50 UTC
It would be great if there was an option of making an exception for specific forms or buttons.
For instance, you may not want to use it for Search button, but for anything else. Or you may want to use it only with comments (Preview and Submit).
Comments
Comment #1
optalgin commentedThis is on my todo list but this is a complicated feature and will take some time
* Alternate button selectors using CSS tags
Comment #2
optalgin commentedI've implemented this feature in 6.x release and it is being tested now
I'll backport this into 5.x soon
* wasn't too complicated after all :-)
Comment #3
mkrakowiak commentedGreat news, Optalgin! I'll be happy to test the D5 version.
Thanks very much!
Comment #4
optalgin commented5.x-1.x-dev is ready with some new features and fixes
Check the advanced fieldset, new configuration added for excluding forms by form-id
or by (advanced) jQuery attribute filter
use the following to exclude "Search" button.
This one is using the button's text
[value!=Search]
Comment #5
optalgin commentedComment #6
mkrakowiak commentedGreat job! It... almost works as it should. The only problem I see right now is caching. With caching enabled in normal mode you'll get white screen of death. I've encountered this before though and know that what's causing it is calling drupal_add_js() in hook_init(). See this: http://api.drupal.org/api/function/hook_init/5. Right now I'm swamped with work but in a week or so I may play with the code a bit more and try to fix it.
Comment #7
optalgin commentedI guess this one is fixed...
Comment #8
mkrakowiak commentedOptalgin, I never got a chance to work on it and it still crashes the website with normal caching on. It works fine until I refresh any page. Then I get white screen with this message:
Fatal error: Call to undefined function filter_xss_admin() in /sites/all/modules/hide_submit/hide_submit.module on line 297To make this work, I actually have to disable caching...
Comment #9
optalgin commentedSorry for changing the status, I was sure it is fixed..
Can you try and remove this function call and try again..
It is not really necessary if you are the site admin
Comment #10
mkrakowiak commentedFor a minute I thought this was now fixed, but then I got the following error:
Fatal error: Call to undefined function t() in /home/sleekmod/public_html/cpj/sites/all/modules/hide_submit/hide_submit.module on line 280Comment #11
optalgin commentedI think the original issue is closed, according to title
I'm closing the current issue and re-opening an old issue about t() function
#463468: When site caching is enabled I get - Fatal error: Call to undefined function t()