add code to open and close popup box

This commit is contained in:
Uwe Steinmann 2017-01-18 08:09:50 +01:00
parent ffcd0e8a4a
commit 3dcf867634

View File

@ -989,9 +989,10 @@ $(document).ready(function() { /* {{{ */
});
});
$('span.openpopupbox').on('click', function(e) {
$('div.popupbox').toggle();
console.log('Hallo');
$("body").on("click", "span.openpopupbox", function(e) {
$(""+$(e.target).data("href")).toggle();
});
$("body").on("click", "span.closepopupbox", function(e) {
$(this).parent().hide();
});
}); /* }}} */