gitana / alpaca

Alpaca provides the easiest way to generate interactive HTML5 forms for web and mobile applications. It uses JSON Schema and simple Handlebars templates to generate great looking, dynamic user interfaces on top of Twitter Bootstrap, jQuery UI, jQuery Mobile and HTML5.
http://www.alpacajs.org
Other
1.29k stars 371 forks source link

UploadField delete button #594

Open CaballoCarpiano opened 6 years ago

CaballoCarpiano commented 6 years ago

On the wrapTemplate method, when setting the delete button click action there is one part when the button on the row is selected. using this jquery selector: var button = $(row).find("button.delete"); As far as I understand, the row variable is the last value of the for on line 57. How can this work?

https://github.com/gitana/alpaca/blob/4962461d435c8a1ff3524bd91d9304f389d1a901/src/js/fields/advanced/UploadField.js#L87