Hi,
Before explaining the issue, I would like to say that I found a solution, and that I'm not really a programmer, so please be indulgent.
I have multiple editable field and I had just one "form submit" button appearing when editing fields, the first one. The others ddidn't work, whereas the submit button was printed in code, but just not displayed (css : display:"none";).
I just remove those lines from the javascript :
// There is only one editable field in that form, we can hide the submit
// button.
if ($this.find('input[type=text],input[type=checkbox],textarea,select').length == 1 || $this.find('input[type=radio] ').length > 1) {
$this.find('input.form-submit').hide();
$this.find('input[type=text],input[type=checkbox],input[type=radio],textarea,select').change(function() {
$this.find('input.form-submit').triggerHandler('click');
});
}And it works. Every editablefield show a sumbit button now when I edit it.
Telling that for others who'll have the same problem.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | no_submit_button_when-2721801-2.patch | 902 bytes | joelpittet |
Comments
Comment #2
joelpittetThanks for the code, here's a patch version. This makes for a big WTF in a bunch of cases. Also has a bug in Safari the way it's currently written anyways. Better be explicit the action being taken.
Comment #3
aporieHi,
thank you for the patch. Happy to be helpfull.
Comment #4
joelpittetCould you try out the patch to see if it works as expected still?
Comment #5
rooby commentedLooks like this is in the latest version too. Seems like issue management was not done after the recent release.
Comment #6
WorldFallz commentedRemoving these lines is a bit of a hack. This issue makes it an option: #1480420: Improve usability by adding a "save field" button. Not sure if that will also fix this issue, but it's a cleaner way of ensuring each field has a save button.