情况:
在通过 notifyTopics 从列表中删除实体之前,它会要求确认。
<script type="text/javascript">
(function($) {
$.subscribe("/confirmDeleteArticle",function(event,data) {
if ( confirm('<s:text name="article.msg.confirm.delete" />') ) {
return true;
}
else {
return false;
}
},null);
})(jQuery);
</script>
<s:url id="disableLink" action="ArticleAction-delete" namespace="/secure/article" includeParams="none">
<s:param name="id" value="%{id}" />
</s:url>
<sj:a href="%{disableLink}" targets="maintarget" onClickTopics="/confirmDeleteArticle">
<img src="../images/icons/cross.png" alt="<s:text name="global.delete" />" title="<s:text name="global.delete" />"/>
</sj:a>
问题:
我想将有关实体标题的参数传递给确认。