From 55a220e38433b9279166d0fddb8e0da2af453184 Mon Sep 17 00:00:00 2001 From: "peng.jianhua" Date: Wed, 29 Nov 2017 15:11:42 +0800 Subject: [PATCH 1/1] KYLIN-3058 the other number input limition issues --- webapp/app/partials/cubeDesigner/advanced_settings.html | 3 ++- webapp/app/partials/cubeDesigner/measures.html | 3 ++- webapp/app/partials/cubeDesigner/streamingConfig.html | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/webapp/app/partials/cubeDesigner/advanced_settings.html b/webapp/app/partials/cubeDesigner/advanced_settings.html index 5d53075..4eb34ef 100755 --- a/webapp/app/partials/cubeDesigner/advanced_settings.html +++ b/webapp/app/partials/cubeDesigner/advanced_settings.html @@ -267,7 +267,8 @@ tooltip="rowkey column length.." tooltip-trigger="focus" ng-disabled="rowkey_column.encoding.indexOf('dict')>=0||rowkey_column.encoding.indexOf('date')>=0||rowkey_column.encoding.indexOf('time')>=0||instance.status=='READY'" ng-change="refreshRowKey(convertedRowkeys,$index,rowkey_column);" - ng-model="rowkey_column.valueLength" class="form-control"> + ng-model="rowkey_column.valueLength" class="form-control" + onInput="this.value=this.value.replace(/[^1-8]/g, '')" maxlength="1"> integer encoding column length should between 1 and 8 diff --git a/webapp/app/partials/cubeDesigner/measures.html b/webapp/app/partials/cubeDesigner/measures.html index aa7a096..7d4a606 100755 --- a/webapp/app/partials/cubeDesigner/measures.html +++ b/webapp/app/partials/cubeDesigner/measures.html @@ -206,7 +206,8 @@ type="text" placeholder="Kylin won’t save more than this number of bytes" class="form-control" tooltip-trigger="focus" ng-init="newMeasure.function.returntype=newMeasure.function.returntype?newMeasure.function.returntype:'extendedcolumn(100)'" - ng-model="newMeasure.function.returntype" required /> + ng-model="newMeasure.function.returntype" required + onInput="this.value=this.value.replace(/[^0-9]/g, '')" /> diff --git a/webapp/app/partials/cubeDesigner/streamingConfig.html b/webapp/app/partials/cubeDesigner/streamingConfig.html index b18b425..24b3438 100644 --- a/webapp/app/partials/cubeDesigner/streamingConfig.html +++ b/webapp/app/partials/cubeDesigner/streamingConfig.html @@ -224,7 +224,8 @@ + class="form-control" + onInput="this.value=this.value.replace(/[^0-9]/g, '')"/> Kafka timeout is invalid. -- 2.7.2.windows.1