Skip to content

Commit

Permalink
(OFBIZ-6525) Add confirmation message before deleting entity record f…
Browse files Browse the repository at this point in the history
…rom web-tools application.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1721089 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
dixitdeepak committed Dec 21, 2015
1 parent e48e84c commit 02409c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions framework/webtools/config/WebtoolsUiLabels.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1266,6 +1266,9 @@
<value xml:lang="zh">配置</value>
<value xml:lang="zh-TW">配置</value>
</property>
<property key="WebtoolsConfirmDelete">
<value xml:lang="en">Are you sure you want to delete?</value>
</property>
<property key="WebtoolsCount">
<value xml:lang="de">Anzahl</value>
<value xml:lang="en">Count</value>
Expand Down
2 changes: 1 addition & 1 deletion framework/webtools/webapp/webtools/entity/ListGeneric.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ under the License.
<td class="button-col">
<a href='<@ofbizUrl>ViewGeneric?${record.findString}</@ofbizUrl>'>${uiLabelMap.CommonView}</a>
<#if hasDeletePermission == 'Y'>
<a href='<@ofbizUrl>UpdateGeneric?${record.findString}&amp;UPDATE_MODE=DELETE</@ofbizUrl>'>${uiLabelMap.CommonDelete}</a>
<a onclick="return confirm ('${uiLabelMap.WebtoolsConfirmDelete}')" href='<@ofbizUrl>UpdateGeneric?${record.findString}&amp;UPDATE_MODE=DELETE</@ofbizUrl>'>${uiLabelMap.CommonDelete}</a>
</#if>
</td>
<#list fieldList as field>
Expand Down

0 comments on commit 02409c1

Please sign in to comment.