Skip to content
Snippets Groups Projects
Commit d9d50275 authored by PavelBegunkov's avatar PavelBegunkov Committed by Роман Штейнберг
Browse files

#145 Fix resizing of popup list and item deletion

parent b39d1fa6
Branches
Tags
No related merge requests found
......@@ -6,9 +6,9 @@ var inspectorList;
$(function () {
$('body').append('<div class="EventInspectorList"></div>');
inspectorList = $('div.EventInspectorList');
inspectorList.on('click', 'div.EventItem', () => $(this).remove());
inspectorList.on('click', 'div.EventItem', function() { $(this).remove(); });
$(window).scroll(() => {
$(window).scroll(function() {
let size = $(this).scrollTop() > 40 ? '20px' : '50px';
inspectorList.css('top', size);
});
......@@ -34,7 +34,7 @@ var EventInspector = {
else
this.show(failMsg, 'error');
},
error: function (text) {
this.show(text, 'error');
},
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment