diff --git a/resources/js/kt-utility.js b/resources/js/kt-utility.js index 1c3e730..857a2e9 100644 --- a/resources/js/kt-utility.js +++ b/resources/js/kt-utility.js @@ -10,6 +10,11 @@ function initDeleteProtection(message) { function setClickFunction(fn, node) { // addToCallStack(node,'onClick',fn); + if (node.tagName == 'SPAN') { + var ahrefs = node.getElementsByTagName('A'); + if (ahrefs.length == 1) { node = ahrefs[0]; } + else { return null; } + } if (isUndefinedOrNull(node.onclick)) { node.onclick = fn; } @@ -17,4 +22,8 @@ function initDeleteProtection(message) { forEach(elements, partial(setClickFunction, fn)); + elements = getElementsByTagAndClassName('SPAN', 'ktDelete'); + + forEach(elements, partial(setClickFunction, fn)); + } \ No newline at end of file diff --git a/templates/ktcore/principals/groupadmin.smarty b/templates/ktcore/principals/groupadmin.smarty index 08eda19..9d25ee9 100644 --- a/templates/ktcore/principals/groupadmin.smarty +++ b/templates/ktcore/principals/groupadmin.smarty @@ -8,6 +8,7 @@ number of different users at once.{/i18n}