You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ja...@apache.org on 2007/02/23 02:03:33 UTC
svn commit: r510741 - in
/ofbiz/trunk/applications/content/webapp/content/website:
WebSiteCMSContent.ftl WebSiteCMSEditor.ftl
Author: jaz
Date: Thu Feb 22 17:03:32 2007
New Revision: 510741
URL: http://svn.apache.org/viewvc?view=rev&rev=510741
Log:
now setting the dataResourceName (as we should)
Modified:
ofbiz/trunk/applications/content/webapp/content/website/WebSiteCMSContent.ftl
ofbiz/trunk/applications/content/webapp/content/website/WebSiteCMSEditor.ftl
Modified: ofbiz/trunk/applications/content/webapp/content/website/WebSiteCMSContent.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/webapp/content/website/WebSiteCMSContent.ftl?view=diff&rev=510741&r1=510740&r2=510741
==============================================================================
--- ofbiz/trunk/applications/content/webapp/content/website/WebSiteCMSContent.ftl (original)
+++ ofbiz/trunk/applications/content/webapp/content/website/WebSiteCMSContent.ftl Thu Feb 22 17:03:32 2007
@@ -57,6 +57,7 @@
<input type="hidden" name="mimeTypeId" value="${mimeTypeId}"/>
</#if>
<input type="hidden" name="webSiteId" value="${webSiteId}"/>
+ <input type="hidden" name="dataResourceName" value=""/>
<table>
<#if (content?has_content)>
@@ -90,8 +91,8 @@
<#if (dataResource?has_content)>
<#if (dataResource.dataTemplateTypeId?has_content)>
<#assign thisType = dataResource.getRelatedOne("DataTemplateType")?if_exists/>
- <option type="${thisType.dataTemplateTypeId}">${thisType.description}</option>
- <option type="${thisType.dataTemplateTypeId}">----</option>
+ <option value="${thisType.dataTemplateTypeId}">${thisType.description}</option>
+ <option value="${thisType.dataTemplateTypeId}">----</option>
</#if>
</#if>
<#list templateTypes as type>
Modified: ofbiz/trunk/applications/content/webapp/content/website/WebSiteCMSEditor.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/webapp/content/website/WebSiteCMSEditor.ftl?view=diff&rev=510741&r1=510740&r2=510741
==============================================================================
--- ofbiz/trunk/applications/content/webapp/content/website/WebSiteCMSEditor.ftl (original)
+++ ofbiz/trunk/applications/content/webapp/content/website/WebSiteCMSEditor.ftl Thu Feb 22 17:03:32 2007
@@ -27,10 +27,14 @@
alert("Cannot locate editor widget!");
}
- // submit the form
var form = document.cmsform;
+
+ // set the data resource name
+ form.dataResourceName.value = form.contentName.value;
+
+ // submit the form
if (form != null) {
- /*
+ /* not using ajax right now; maybe later
var url = form.action;
var bindArgs = {
url: url,