Project

General

Profile

« Previous | Next » 

Revision 60e4da4c

Added by Amir Fefer over 5 years ago

Fixes #17263 - move jed (i18n) to webpack

View differences:

app/assets/javascripts/charts.js
hostsCount += this.data;
});
expanded_pie(target, data.values);
$('.modal-title').empty().append( __('Fact distribution chart') + ' - <b>' + _.escape(data.name) + ' </b><small> ('+ Jed.sprintf(n__("%s host", "%s hosts", hostsCount), hostsCount) +')</small>');
$('.modal-title').empty().append( __('Fact distribution chart') + ' - <b>' + _.escape(data.name) + ' </b><small> ('+ tfm.i18n.sprintf(n__("%s host", "%s hosts", hostsCount), hostsCount) +')</small>');
target.attr('data-url', foreman_url("/hosts?search=facts." + data.name + "~~VAL1~"));
});
});

Also available in: Unified diff