updates for page management as well as some changes to schema.xml to enable addition of dynamic fields (for datastar but also present if others would like to employ it) - some additional debug lines to ContextNodeFields.

This commit is contained in:
hjkhjk54 2012-08-16 21:17:40 +00:00
parent cdd10b24f1
commit 34858fcadb
4 changed files with 21 additions and 3 deletions

View file

@ -37,6 +37,18 @@ var processIndividualsForClassesDataGetterContent = {
var classSelected = classesSelected[i];
pageContentSection.find("input[name='classInClassGroup'][value='" + classSelected + "']").attr("checked", "checked");
}
//If number of classes selected is not equal to total number of classes, uncheck all
var results =existingContentObject["results"];
if(results != null && results.classGroupName != null) {
var resultsClasses = results["classes"];
if(resultsClasses != null) {
var numberClasses = resultsClasses.length;
if(numberClasses != numberSelected) {
pageContentSection.find("input[name='allSelected']").removeAttr("checked");
}
}
}
},
//For the label of the content section for editing, need to add additional value
retrieveAdditionalLabelText:function(existingContentObject) {

View file

@ -63,7 +63,6 @@
<form id="managePage" method="POST" action="${submitUrl}" role="add page">
<input type="hidden" name="switchToDisplayModel" id="switchToDisplayModel" value="1" role="input" />
<input type="hidden" id="editKey" name="editKey" value="${editKey}" />
<input type="hidden" id="menuItem" name="menuItem" value="${menuItem}"/>
<h2>${pageHeading}</h2>
<!--Drop down for the types of content possible-->
<section id="floatRight">