aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/mod_hq.js
blob: 87d9f1ef3ac936df9829d50b9fd36b06e3615527 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$(document).ready(function() {

	$(document).on('click', '.jot-toggle', function(e) {
		$(window).scrollTop(0);
		$('#jot-popup').toggle();
		$('#profile-jot-text').focus();
	});

	$(document).on('click', '.notes-toggle', function(e) {
		$(window).scrollTop(0);
		$('#personal-notes').toggleClass('d-none');
		$('#note-text').focus();
	});

	$(document).on('hz:handleNetworkNotificationsItems', function(e, obj) {
		push_notification($('<p>' + obj.message + '</p>').text(), obj.name);
	});

});