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