Merge pull request #846 from DimalChandrasiri/master

fixes wso2/product-iots#1141
merge-requests/1/head
Madhawa Perera 7 years ago committed by GitHub
commit e73eef9490

@ -41,7 +41,9 @@
<hr/> <hr/>
<div class="form-login-box" > <div class="form-login-box" >
<label class="wr-input-label">Group Name</label> <label class="wr-input-label" title="{{groupNameHelpMsg}}">Group Name
<span class="wr-help-tip glyphicon glyphicon-question-sign"></span>
</label>
<div class="form-group wr-input-control"> <div class="form-group wr-input-control">
<input type="text right" id="name" placeholder="Group Name" data-regex="{{groupNameJSRegEx}}" <input type="text right" id="name" placeholder="Group Name" data-regex="{{groupNameJSRegEx}}"

@ -232,6 +232,9 @@ function loadGroups() {
$.each($('td', row), function (colIndex) { $.each($('td', row), function (colIndex) {
switch (colIndex) { switch (colIndex) {
case 1: case 1:
//TODO : The following line encodes html entities.
//Should check for a better solution since it only changes the presentation layer
$(this).text($("<textarea></textarea>").html(this.innerText).text())
$(this).attr('data-grid-label', "Name"); $(this).attr('data-grid-label', "Name");
$(this).attr('data-search', data.name); $(this).attr('data-search', data.name);
$(this).attr('data-display', data.name); $(this).attr('data-display', data.name);

Loading…
Cancel
Save