From 731c2e88fe8f6451a5154634a13e9de053dc0d91 Mon Sep 17 00:00:00 2001 From: rlx Date: Sun, 17 Jan 2016 16:44:59 +0530 Subject: [PATCH] Filter: handle formatISBN --- source/UI/js/Form/Filter.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/source/UI/js/Form/Filter.js b/source/UI/js/Form/Filter.js index f925b653..9e376831 100644 --- a/source/UI/js/Form/Filter.js +++ b/source/UI/js/Form/Filter.js @@ -466,7 +466,6 @@ Ox.Filter = function(options, self) { var key, that = this; that.focus(); // make input trigger change setTimeout(function() { - Ox.print(self.options.value.conditions.length, that.parent().data('subposition') == -1); if (self.options.value.conditions.length == 1) { key = self.options.findKeys[0]; self.options.value.conditions = [{ @@ -739,7 +738,7 @@ Ox.Filter = function(options, self) { width: 288 }); } else if (findKey.format) { - formatArgs = findKey.format.args + formatArgs = findKey.format.args; formatType = findKey.format.type; if (formatType == 'color') { isHue = formatArgs[0] == 'hue'; @@ -777,6 +776,12 @@ Ox.Filter = function(options, self) { value: value, width: {hours: 38, minutes: 37, seconds: 37} }); + } else if (formatType == 'ISBN') { + $input = Ox.Input({ + type: type, + value: Ox.formatISBN.apply(null, [value].concat(formatArgs)), + width: 288 + }); } else if (formatType == 'number') { $input = Ox.Input({ type: type,