mirror of
https://0xacab.org/sutty/sutty
synced 2024-07-05 23:45:46 +00:00
20 lines
345 B
JavaScript
20 lines
345 B
JavaScript
$(document).on('turbolinks:load', function() {
|
|
$('.taggable').each(function() {
|
|
this.innerHTML = '';
|
|
|
|
new InputTag({
|
|
target: this,
|
|
props: { ...this.dataset }
|
|
});
|
|
});
|
|
|
|
$('.mapable').each(function() {
|
|
this.innerHTML = '';
|
|
|
|
new InputMap({
|
|
target: this,
|
|
props: { ...this.dataset }
|
|
});
|
|
});
|
|
});
|