It seems that since DotNetNuke 9 the build-in confirm dalog dnnConfirm
does not work anymore like it did before or has been removed. The error is Uncaught TypeError: $(...).dnnConfirm is not a function
I uses it like this
<script type="text/javascript">
$('.DeleteButton').each(function (index, item) {
$(this).dnnConfirm({
text: 'Delete this item?',
yesText: 'Yes',
noText: 'No',
title: 'Delete Dialog',
width: 400,
isButton: false
});
});
</script>
I looked it up in the documentation, but could not find anything.
- http://www.dnnsoftware.com/wiki/dnnconfirm-jquery-plugin
- http://uxguide.dotnetnuke.com/UIPatterns/ConfirmDialog.html
Does anyone have a fix/workaround/solution?
UPDATE
I just found out the function is present when you log in as a SuperUser but not as a visitor or normal user who is logged in. This would indicate that some JS files are only loaded when SuperUser whereas they were always present in previous versions.