format ISBNs with dashes
This commit is contained in:
parent
846eb7f3f3
commit
386bfd2324
1 changed files with 2 additions and 2 deletions
|
@ -60,7 +60,7 @@ oml.ui.identifyDialog = function(data) {
|
|||
}),
|
||||
isbn: Ox.Input({
|
||||
style: 'squared',
|
||||
value: data.isbn,
|
||||
value: Ox.formatISBN(data.isbn, 13, true),
|
||||
width: 544
|
||||
})
|
||||
.bindEvent({
|
||||
|
@ -227,7 +227,7 @@ oml.ui.identifyDialog = function(data) {
|
|||
title: $titleInput.value(),
|
||||
author: $authorInput.value()
|
||||
} : key == 'isbn' ? {
|
||||
isbn: $findInput.isbn.value()
|
||||
isbn: Ox.formatISBN($findInput.isbn.value(), 13)
|
||||
} : {
|
||||
id: $findInput.id.value()
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue