Last modified: 2013-02-13 16:12:05 UTC
The way I tab through stuff and create statements, sometimes I accidentally hit "save" twice. It says "Saving... Saving..." I am now also getting a JS error, though not always. mw.Api error: createclaim-save-failed Object {error: Object} load.php:11129 Uncaught TypeError: Cannot call method 'enable' of undefined jquery.wikibase.claimview.js:428 In this line, the .data( 'wb-toolbar' ) returns undefined. this.$toolbar.find( '.wb-ui-toolbar' ).data( 'wb-toolbar' ).enable(); I suppose people shouldn't hit save twice, so perhaps it's not critical it be fixed *right now* but would be good if the code handled this nicer without any errors.
This is because each time hitting enter it will trigger an API call even though it did already. Not that critical since the save will still be performed, not even the UI gets broken by this.
Change Iafe8540f: (bug 44641) Preventing keydown event when disabled
Verified in Wikidata demo sprint 32