From 022c8f4812a2193d189ed6d77e90aa454d0a7b6f Mon Sep 17 00:00:00 2001 From: Simon Bernard Date: Tue, 19 Apr 2016 15:09:28 +0200 Subject: [PATCH] #119 allow to write empty string in web ui --- .../src/main/resources/webapp/js/resource-directives.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leshan-server-demo/src/main/resources/webapp/js/resource-directives.js b/leshan-server-demo/src/main/resources/webapp/js/resource-directives.js index b68577e985..cafc07e137 100644 --- a/leshan-server-demo/src/main/resources/webapp/js/resource-directives.js +++ b/leshan-server-demo/src/main/resources/webapp/js/resource-directives.js @@ -149,7 +149,7 @@ angular.module('resourceDirectives', []) e.preventDefault(); var value = $('#writeInputValue').val(); - if(value) { + if(value != undefined) { $('#writeModal').modal('hide'); var rsc = {};