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({
|
isbn: Ox.Input({
|
||||||
style: 'squared',
|
style: 'squared',
|
||||||
value: data.isbn,
|
value: Ox.formatISBN(data.isbn, 13, true),
|
||||||
width: 544
|
width: 544
|
||||||
})
|
})
|
||||||
.bindEvent({
|
.bindEvent({
|
||||||
|
@ -227,7 +227,7 @@ oml.ui.identifyDialog = function(data) {
|
||||||
title: $titleInput.value(),
|
title: $titleInput.value(),
|
||||||
author: $authorInput.value()
|
author: $authorInput.value()
|
||||||
} : key == 'isbn' ? {
|
} : key == 'isbn' ? {
|
||||||
isbn: $findInput.isbn.value()
|
isbn: Ox.formatISBN($findInput.isbn.value(), 13)
|
||||||
} : {
|
} : {
|
||||||
id: $findInput.id.value()
|
id: $findInput.id.value()
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue