diff options
Diffstat (limited to 'core/src/jquery/octemplate.js')
-rw-r--r-- | core/src/jquery/octemplate.js | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/core/src/jquery/octemplate.js b/core/src/jquery/octemplate.js index f89e13b000f..cecbe880aa6 100644 --- a/core/src/jquery/octemplate.js +++ b/core/src/jquery/octemplate.js @@ -1,3 +1,8 @@ +/** + * SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + import $ from 'jquery' import escapeHTML from 'escape-html' @@ -41,14 +46,14 @@ import escapeHTML from 'escape-html' * var contacts = // fetched in some ajax call * * $.each(contacts, function(idx, contact) { - * $contactList.append( - * $tmpl.octemplate({ - * id: contact.getId(), - * name: contact.getDisplayName(), - * email: contact.getPreferredEmail(), - * phone: contact.getPreferredPhone(), - * }); - * ); + * $contactList.append( + * $tmpl.octemplate({ + * id: contact.getId(), + * name: contact.getDisplayName(), + * email: contact.getPreferredEmail(), + * phone: contact.getPreferredPhone(), + * }); + * ); * }); */ /** @@ -84,7 +89,7 @@ const Template = { function(a, b) { const r = o[b] return typeof r === 'string' || typeof r === 'number' ? r : a - } + }, ) } catch (e) { console.error(e, 'data:', data) |