diff --git a/module/bug/js/create.js b/module/bug/js/create.js index e7ec1fe87d..3e258bd9be 100644 --- a/module/bug/js/create.js +++ b/module/bug/js/create.js @@ -75,8 +75,22 @@ function setTemplate(templateID) function deleteTemplate(templateID) { if(!templateID) return; - hiddenwin.location.href = createLink('bug', 'deleteTemplate', 'templateID=' + templateID); - $('#tplBox' + templateID).addClass('hidden'); + if (confirm("您确认要删除该模板吗?")){ + hiddenwin.location.href = createLink('bug', 'deleteTemplate', 'templateID=' + templateID); + $('#tplBox' + templateID).addClass('hidden'); + } +} + +/*visbile template x icon*/ +function mouseOver(delTempID) +{ + $('#delTemp'+delTempID).removeClass('hidden'); +} + +/*hidden template x icon*/ +function mouseOut(delTempID) +{ + $('#delTemp'+delTempID).addClass('hidden'); } $(function() diff --git a/module/bug/view/buildtemplates.html.php b/module/bug/view/buildtemplates.html.php index 8adfc3ff34..41422936f9 100644 --- a/module/bug/view/buildtemplates.html.php +++ b/module/bug/view/buildtemplates.html.php @@ -1,11 +1,11 @@ $template) { - echo "