ofbiz-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dee...@apache.org
Subject svn commit: r1721089 - in /ofbiz/trunk/framework/webtools: config/WebtoolsUiLabels.xml webapp/webtools/entity/ListGeneric.ftl
Date Mon, 21 Dec 2015 05:09:06 GMT
Author: deepak
Date: Mon Dec 21 05:09:06 2015
New Revision: 1721089

URL: http://svn.apache.org/viewvc?rev=1721089&view=rev
Log:
(OFBIZ-6525) Add confirmation message before deleting entity record from web-tools application.

Modified:
    ofbiz/trunk/framework/webtools/config/WebtoolsUiLabels.xml
    ofbiz/trunk/framework/webtools/webapp/webtools/entity/ListGeneric.ftl

Modified: ofbiz/trunk/framework/webtools/config/WebtoolsUiLabels.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/config/WebtoolsUiLabels.xml?rev=1721089&r1=1721088&r2=1721089&view=diff
==============================================================================
--- ofbiz/trunk/framework/webtools/config/WebtoolsUiLabels.xml (original)
+++ ofbiz/trunk/framework/webtools/config/WebtoolsUiLabels.xml Mon Dec 21 05:09:06 2015
@@ -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>

Modified: ofbiz/trunk/framework/webtools/webapp/webtools/entity/ListGeneric.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/webapp/webtools/entity/ListGeneric.ftl?rev=1721089&r1=1721088&r2=1721089&view=diff
==============================================================================
--- ofbiz/trunk/framework/webtools/webapp/webtools/entity/ListGeneric.ftl (original)
+++ ofbiz/trunk/framework/webtools/webapp/webtools/entity/ListGeneric.ftl Mon Dec 21 05:09:06
2015
@@ -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>



Mime
View raw message