lib/rhoconnect/web-console/models/doc.js in rhoconnect-3.2.0.beta2 vs lib/rhoconnect/web-console/models/doc.js in rhoconnect-3.2.0.beta3
- old
+ new
@@ -42,14 +42,15 @@
var data = ""
r = self.formatJson(resp)
if(resp != ''){
data += "<tr><th colspan=3><h3 style='display:inline'>Data</h3><span class='pull-right'>" +
"<a id='clear' class='btn btn-danger'>clear document</a></span></th></tr>" +
- "<tr><td id='doc_data'>" + r+ "</td></tr>";
+ "<tr><td id='doc_data'><pre>" + r+ "</pre></td></tr>";
}
else{
data += "<tr><th>Document is Empty</th></tr>";
}
+ $('tr.remove-tr-doc').remove();
$('#docdata-table tr:last').after(data);
$(".query-status")[0].firstChild.className = "label label-success";
$(".query-status")[0].firstChild.innerHTML = "success";
},
error: function(resp){
\ No newline at end of file