1
0
mirror of synced 2024-12-01 17:16:02 +03:00
select2/themes/site/js/data-fill-from.js

14 lines
299 B
JavaScript
Raw Normal View History

2017-09-03 03:34:47 +03:00
$(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");
});
});