aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/styles/subsilver2/template/common.js
blob: c9e6221e2eb987718c61cdce7903f6bee7415d21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
(function($) {  // Avoid conflicts with other libraries

"use strict";

// Toggle notification list
$('#notification_list_button').click(function(e) {
	$('#notification_list').toggle();
	e.preventDefault();
});
$(document).click(function(e) {
    var target = e.target;

    if (!$(target).is('#notification_list') && !$(target).is('#notification_list_button') && !$(target).parents().is('#notification_list')) {
        $('#notification_list').hide();
    }
});

})(jQuery); // Avoid conflicts with other libraries