Closed (outdated)
Project:
Hide submit button
Version:
6.x-1.9
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
14 Nov 2009 at 06:18 UTC
Updated:
12 Apr 2016 at 19:52 UTC
Jump to comment: Most recent
Noticed that I couldn't post, edit, or preview a comment when I'm using the disable buttons option as the script mode.
Comments
Comment #1
optalgin commentedThis is a good one :-)
This is really strange, the scripts for hide -or- disable are very close
I have no idea why hiding works for both nodes and comments
and disabling works for nodes but fails for comments ?!?
* I also noted the pointless image preload..
I'll try to analyze it.. any javascript advises are welcome
Comment #2
optalgin commentedI think I found a solution..
I'll add it soon to the dev. release for testing
The problem is that disabled buttons are not included in the form POST variables
Drupal comment module uses the "op" variable to know which button was pressed (preview/save)
but it is not there because buttons are disabled.
so my current solution is to inject a hidden form element named "op" and assign the value of the clicked button to it.
Comment #3
optalgin commentedWorkaround commited, please review
Please check the 6.x-1.x-dev release
New package should be ready soon (verify date - jan-2010)
Comment #4
optalgin commentedComment #5
Platinum commentedSo far it seems to work fine in Firefox, but in IE8, the disable button doesn't work on any submit. It disables the submit buttons but then the page just does nothing. Anyone else have this problem?
Comment #6
YK85 commentedi just installed and tested this module and it works in IE
please re-open if you still experience the problem
Comment #7
YK85 commentedsetting back to 'active' as per other post by maintainer
Comment #8
optalgin commentedComment #9
gregglesThanks for submitting this issue.
The 6.x branch of this module is not supported. This issue was filed against the 6.x version so I'm closing it because it doesn't seem relevant to the 7.x version.
If the issue is relevant for the 7.x version: I apologize for closing it. Can you please reopen it and adjust the version number?