From 42943f3805f3191c80d2515b750b03c243dad70a Mon Sep 17 00:00:00 2001 From: bshuttle Date: Thu, 2 Feb 2006 14:03:25 +0000 Subject: [PATCH] - use inline links better (manageStates) - catch a links inside ktDelete spans - allow search to work on groups. --- resources/js/kt-utility.js | 9 +++++++++ templates/ktcore/principals/groupadmin.smarty | 1 + templates/ktcore/workflow/manageStates.smarty | 5 ++--- 3 files changed, 12 insertions(+), 3 deletions(-) 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}

+
{i18n}Search for groups{/i18n}

{i18n}Since there may be many groups in the diff --git a/templates/ktcore/workflow/manageStates.smarty b/templates/ktcore/workflow/manageStates.smarty index 089cc42..667e3df 100644 --- a/templates/ktcore/workflow/manageStates.smarty +++ b/templates/ktcore/workflow/manageStates.smarty @@ -13,9 +13,8 @@ while the workflow has no documents or document-versions assigned to the workflo Create a new state

A critical part of workflow is the creation of various different states for documents.

-{i18n}Create a new state{/i18n} -{i18n}Create a new state{/i18n} +{i18n}Create a new state{/i18n}
-- libgit2 0.21.4