diff --git a/static/js/apiDialog.js b/static/js/apiDialog.js index 073986a00..b04eb0600 100644 --- a/static/js/apiDialog.js +++ b/static/js/apiDialog.js @@ -143,7 +143,7 @@ pandora.ui.apiDialog = function() { .replace(/`(\w+?)`/g, '$1') ); parts = $doc.html().split('notes: '); - if (len(parts) == 2) { + if (parts.length == 2) { parts_ = parts[1].split('see: '); if (len(parts_) == 2) { parts_[0] = parts_[0].replace(/\n\s+?/g, ' '); @@ -154,7 +154,7 @@ pandora.ui.apiDialog = function() { $doc.html(parts.join('notes: ')); } parts = $doc.html().split('see: '); - if (len(parts) == 2) { + if (parts.length == 2) { parts[1] = parts[1].replace(/\n\s+?/, '').split(', ').map( function(action) { return '' + action + '';