Skip to content

Commit

Permalink
Merge pull request sheadawson#35 from stephenmcm/master
Browse files Browse the repository at this point in the history
Fix enter key presses in input dialogs triggering the add new button
  • Loading branch information
sheadawson committed May 27, 2016
2 parents 18481e9 + 4d8d853 commit ab8e2b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions javascript/quickaddnew.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ jQuery.entwine("quickaddnew", function($) {
}
// create add new button
var button = $("<button />")
.addClass()
.text(ss.i18n._t('QUICKADDNEW.AddNew'))
.attr('type', 'button')
.attr('href', '#')
.text(ss.i18n._t('QUICKADDNEW.AddNew'))
.addClass("quickaddnew-button ss-ui-button ss-ui-button-small")
.appendTo(self.parents('div:first'));

Expand Down

0 comments on commit ab8e2b4

Please sign in to comment.