Skip to content
Snippets Groups Projects
Commit c6b753b1 authored by Reidar Cederqvist's avatar Reidar Cederqvist Committed by Sukru Senli
Browse files

JUCI-core: fixed changes show zeroes

parent db57d8ca
No related branches found
No related tags found
No related merge requests found
...@@ -19,8 +19,8 @@ ...@@ -19,8 +19,8 @@
<div ng-show="item.option">{{item.option|maxlength:30}}</div> <div ng-show="item.option">{{item.option|maxlength:30}}</div>
<div ng-show="item.state">{{item.state}}</div> <div ng-show="item.state">{{item.state}}</div>
</td> </td>
<td><div ng-show="item.ovalue">{{item.ovalue|maxlength:30}}</div></td> <td><div ng-show="item.ovalue != 'undefined'">{{item.ovalue|maxlength:30}}</div></td>
<td><div ng-show="item.uvalue">{{item.uvalue|maxlength:30}}</div></td> <td><div ng-show="item.uvalue != 'undefined'">{{item.uvalue|maxlength:30}}</div></td>
<td><span ng-click="onRevertOption($index)" style="cursor:pointer; float:right"><i class="fa fa-trash"></i></span></td> <td><span ng-click="onRevertOption($index)" style="cursor:pointer; float:right"><i class="fa fa-trash"></i></span></td>
</tr> </tr>
</tbody> </tbody>
......
...@@ -32,7 +32,7 @@ JUCI.app ...@@ -32,7 +32,7 @@ JUCI.app
}).filter("maxlength", function(){ }).filter("maxlength", function(){
return function(input, length){ return function(input, length){
length = (typeof length != "number") ? 50 : length; length = (typeof length != "number") ? 50 : length;
input = input || ""; if(input === undefined)input = "";
if(String(input).length < length) return input; if(String(input).length < length) return input;
var output = ""; var output = "";
output = String(input).slice(0, length) + "..."; output = String(input).slice(0, length) + "...";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment