|
|
@@ -35,9 +35,10 @@ wn.form.formatters = { |
|
|
|
if(!value) |
|
|
|
return ""; |
|
|
|
if(docfield && docfield.options) { |
|
|
|
return repl('%(icon)s<a href="#Form/%(doctype)s/%(name)s">%(name)s</a>', { |
|
|
|
doctype: docfield.options, |
|
|
|
name: value, |
|
|
|
return repl('%(icon)s<a href="#Form/%(doctype)s/%(name)s">%(label)s</a>', { |
|
|
|
doctype: encodeURIComponent(docfield.options), |
|
|
|
name: encodeURIComponent(value), |
|
|
|
label: value, |
|
|
|
icon: (options && options.no_icon) ? "" : |
|
|
|
('<i class="icon-fixed-width '+wn.boot.doctype_icons[docfield.options]+'"></i> ') |
|
|
|
}); |
|
|
|