Procházet zdrojové kódy

fix: codacy

version-14
Himanshu Warekar před 5 roky
rodič
revize
6fc5cb584f
1 změnil soubory, kde provedl 5 přidání a 4 odebrání
  1. +5
    -4
      frappe/public/js/frappe/ui/toolbar/tag_utils.js

+ 5
- 4
frappe/public/js/frappe/ui/toolbar/tag_utils.js Zobrazit soubor

@@ -50,9 +50,6 @@ frappe.tags.utils = {
}

function make_description(content) {
if (!content) {
return "";
}
var field_length = 110;
var field_value = null;
if (content.length > field_length) {
@@ -66,10 +63,14 @@ frappe.tags.utils = {

data.forEach(function(d) {
// more properties
var description = "";
if (d.content) {
description = make_description(d.content);
}
result = {
label: d.name,
value: d.name,
description: make_description(d.content),
description: description,
route: ['Form', d.doctype, d.name],

};


Načítá se…
Zrušit
Uložit