1
0
mirror of synced 2024-11-25 06:16:08 +03:00
select2/themes/site/js/data-fill-from.js
2017-09-02 20:34:47 -04:00

14 lines
299 B
JavaScript

$(document).ready(function() {
$("[data-fill-from]").each(function () {
var $this = $(this);
var codeContainer = $this.data("fill-from");
var $container = $(codeContainer);
var code = $.trim($container.html());
$this.text(code);
$this.addClass("prettyprint");
});
});