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

changed outlet method from custom element to data- attribute

parent f0b75345
No related branches found
No related tags found
No related merge requests found
......@@ -22,8 +22,8 @@ $(function () {
var outlets = new Set();
socket.on(e.attr('id'), function (cnt) {
e.html(cnt);
e.find('infodisplay-outlet[name]').each(function () {
var name = $(this).attr('name');
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) {
......
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