IfnotFr / PopConfirm

A simple action confirmation plugin for jQuery based on Twitter Bootstrap Popover
MIT License
99 stars 35 forks source link

Button name/value not included in submitted form #21

Closed kaetemi closed 8 years ago

kaetemi commented 9 years ago

Fixed by adding following before form.submit() call:

            var hidden = document.createElement('input');
            hidden.type = 'hidden';
            hidden.name = self.attr('name');
            hidden.value = self.attr('value');
            form.append(hidden);
IfnotFr commented 9 years ago

Hi kaetemi !

It is Interesting as the submit button is not sent, however i think we have to check if there are attr name/value present on the button.

Would you PR your fix ?

Thanks :)

IfnotFr commented 8 years ago

WIth dd3a278 i created 9f5c503609a1898418925f069f4bef06c2758f54. I fixed this.