[Git][noosfero/noosfero][master] delivery-plugin: use EC5 syntax of map
Rodrigo Souto
gitlab at mg.gitlab.com
Fri Sep 14 12:12:46 BRT 2018
Rodrigo Souto pushed to branch master at Noosfero / noosfero
Commits:
fbbaff02 by Rodrigo Souto at 2018-09-14T15:12:38Z
delivery-plugin: use EC5 syntax of map
- - - - -
1 changed file:
- plugins/delivery/public/javascripts/delivery.js
Changes:
=====================================
plugins/delivery/public/javascripts/delivery.js
=====================================
@@ -11,7 +11,7 @@ function fix_onclick_argument() {
var html_elements = document.getElementsByClassName('replace-onclick-arg');
var elements_array = Array.from(html_elements);
- elements_array.map(element => {
+ elements_array.map(function(element) {
onclick_event = element.getAttribute('onclick');
var new_onclick_event = onclick_event.replace(/\&\*/g, "'");
element.setAttribute('onclick', new_onclick_event);
View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/fbbaff0284467d5ef3ffdea77042788bd20c5d7e
--
View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/fbbaff0284467d5ef3ffdea77042788bd20c5d7e
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20180914/875e7ff6/attachment.html>
More information about the Noosfero-dev
mailing list