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.

CommentFileSizeAuthor
#2 no_submit_button_when-2721801-2.patch902 bytesjoelpittet

Comments

Aporie created an issue. See original summary.

joelpittet’s picture

StatusFileSize
new902 bytes

Thanks 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.

aporie’s picture

Hi,

thank you for the patch. Happy to be helpfull.

joelpittet’s picture

Could you try out the patch to see if it works as expected still?

rooby’s picture

Status: Needs review » Fixed

Looks like this is in the latest version too. Seems like issue management was not done after the recent release.

WorldFallz’s picture

Removing 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.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.