format ISBNs with dashes

This commit is contained in:
rlx 2016-01-16 20:38:01 +05:30
parent 846eb7f3f3
commit 386bfd2324
1 changed files with 2 additions and 2 deletions

View File

@ -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()
},