From 386bfd232453153a2346f0a5b950ccd690e0f2c8 Mon Sep 17 00:00:00 2001 From: rlx Date: Sat, 16 Jan 2016 20:38:01 +0530 Subject: [PATCH] format ISBNs with dashes --- static/js/identifyDialog.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/identifyDialog.js b/static/js/identifyDialog.js index 577fd3f..0745e3e 100644 --- a/static/js/identifyDialog.js +++ b/static/js/identifyDialog.js @@ -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() },