Author: billyxie
Date: 2009-05-12 09:58:44 +0200 (Tue, 12 May 2009)
New Revision: 35070
Modified:
CMSContainer/trunk/CMSContainer/cmsc/edit-webapp/src/webapp/editors/editwizards_new/xsl/wizard.xsl
Log:
CMSC-152 - The layout of a page should be selectable from a selectbox
(Currently it is a popup)
Modified:
CMSContainer/trunk/CMSContainer/cmsc/edit-webapp/src/webapp/editors/editwizards_new/xsl/wizard.xsl
===================================================================
---
CMSContainer/trunk/CMSContainer/cmsc/edit-webapp/src/webapp/editors/editwizards_new/xsl/wizard.xsl
2009-05-12 07:57:27 UTC (rev 35069)
+++
CMSContainer/trunk/CMSContainer/cmsc/edit-webapp/src/webapp/editors/editwizards_new/xsl/wizard.xsl
2009-05-12 07:58:44 UTC (rev 35070)
@@ -476,6 +476,12 @@
</xsl:for-each>
<xsl:for-each select="comma...@name='layoutsearch']">
<script type="text/javascript">
+ <xsl:variable name="i18n_prompt">
+ <xsl:call-template name="i18n">
+ <xsl:with-param name="nodes" select="prompt"/>
+ </xsl:call-template>
+ </xsl:variable>
+ var prompt = '<xsl:value-of select="$i18n_prompt"/>';
<![CDATA[
function ajaxFunction(){
var xmlhttp;
@@ -496,7 +502,7 @@
if(aOptions.length == 1){
layoutsearch(aOptions[0].id);
} else if(aOptions.length > 1){
- htmlOptions[0] = new
Option("","");
+ htmlOptions[0] = new
Option(prompt,"");
for(var i = 0; i <
aOptions.length; i++){
htmlOptions[htmlOptions.length] = new Option(aOptions[i].title,aOptions[i].id);
}
@@ -510,8 +516,8 @@
xmlhttp.open("GET","../../../../editors/site/LayoutAction.do",true);
xmlhttp.send(null);
}
+ ]]>
ajaxFunction();
- ]]>
function layoutsearch(value){
if(value != null){
doAdd("|" + value, '<xsl:value-of
select="../comma...@name='add-item']/@cmd" />' );
@@ -520,9 +526,6 @@
</script>
<table class="searchcontent">
<tr>
- <xsl:if test="prompt">
- <td class="searchprompt"><xsl:call-template name="prompt"/></td>
- </xsl:if>
<td>
<xsl:call-template name="listsearch-age"/>
</td>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs