eGovPDX / Council-Agenda-App

5 stars 0 forks source link

Enter/Return doesn't close modal #18

Closed OscarGodson closed 13 years ago

OscarGodson commented 13 years ago

Enter/Return should close a modal with a default value. I.e. Create New Agenda > Enter would then create a new Agenda as if you pressed enter. Delete should default to No.

OscarGodson commented 13 years ago

Fixed. Developer note:
Add the HTML attribute data-default="default" (or just data-default if you're lazy) to whatever button you want to be the "enter" command. Whatever you put that on will be "clicked" when the user presses enter. Example:

<a class="button" href="#!/edit/save" data-default="default">Save</a>
<a class="button" href="#!/edit/cancel">Cancel</a>