Skip to content
Snippets Groups Projects
Commit aeb2a060 authored by Kasalehlia's avatar Kasalehlia
Browse files

added event on content change

parent 8320d9b5
No related branches found
No related tags found
No related merge requests found
......@@ -25,9 +25,9 @@ $(function () {
e.find('[data-infodisplay-outlet]').each(function () {
var name = $(this).attr('data-infodisplay-outlet');
if (!outlets.has(name)) {
var outlet = $(this);
socket.on(e.attr('id')+'.'+name, function (content) {
outlet.html(content);
$('[data-infodisplay-outlet="'+name+'"]').html(content);
e.trigger('content', name);
});
outlets.add(name);
}
......
......@@ -22,4 +22,7 @@
}
}
}, 1000);
$('#bus').on('content', function (ev, name) {
lastMinute = null;
});
})();
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment