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
No related merge requests found
...@@ -6,9 +6,9 @@ var inspectorList; ...@@ -6,9 +6,9 @@ var inspectorList;
$(function () { $(function () {
$('body').append('<div class="EventInspectorList"></div>'); $('body').append('<div class="EventInspectorList"></div>');
inspectorList = $('div.EventInspectorList'); 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'; let size = $(this).scrollTop() > 40 ? '20px' : '50px';
inspectorList.css('top', size); inspectorList.css('top', size);
}); });
...@@ -34,7 +34,7 @@ var EventInspector = { ...@@ -34,7 +34,7 @@ var EventInspector = {
else else
this.show(failMsg, 'error'); this.show(failMsg, 'error');
}, },
error: function (text) { error: function (text) {
this.show(text, 'error'); 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