Browse Source

Adds the new prefix conf for etherpad which also was added for individual reports, part of #39.

devel
Jonathan Rosenbaum 7 years ago
parent
commit
a960dbda55
  1. 10
      js/reports.js

10
js/reports.js

@ -41,8 +41,14 @@ $(function(){
if (data) {
var obj = $.parseJSON(data);
$("#name").text(obj.full_name);
var pad_name = "pad_contact_id_" + contact_id;
if ( obj.configurations.host ) {
var pad_name;
if (obj.configurations.prefix) {
pad_name = obj.configurations.prefix + "_pad_contact_id_" + contact_id;
} else {
pad_name = "pad_contact_id_" + contact_id;
}
console.log(pad_name);
if ( obj.configurations.host && obj.full_name ) {
$("#individual_history_pad").pad({
"padId": pad_name,
"host": obj.configurations.host,

Loading…
Cancel
Save