diff --git a/resources/js/conditional_simple_edit.js b/resources/js/conditional_simple_edit.js
index 0cbf8f8..f62c7e8 100644
--- a/resources/js/conditional_simple_edit.js
+++ b/resources/js/conditional_simple_edit.js
@@ -1,6 +1,6 @@
/* Model Functions
*
- * Perform various and sundry operations on the edit-page.
+ * Perform various and sundry operations on the edit-page.
*/
@@ -44,7 +44,7 @@ function setActiveFields(active_fields) {
var column = getColumnForField(active_fields[i]);
setElementClass(column, 'active');
}
-
+
}
// takes a field, and sets all items in active_lookups to be active. other items are deleted.
@@ -94,17 +94,17 @@ function getActiveLookups() {
}
}
}
- }
+ }
return active_lookups;
}
/** Simple edit: AJAX component */
// extract the "fixed" field, and identify which fields (if any) are active.
function updateActiveFields() {
-
+
simpleLog('DEBUG','function updateActiveFields called.');
var req = getXMLHttpRequest();
-
+
req.open('GET',getTargetUrl()+'?action=updateActiveFields&active_field='+current_fixed, true);
var deferred = sendXMLHttpRequest(req);
deferred.addCallback(do_updateActiveFields);
@@ -117,7 +117,7 @@ function do_handleAjaxError(err_source, err) {
// from a selected_lookup, get the fixed_field and pass through, getting the items that selection currently activates.
function updateActiveLookups(selected_lookup, lookup_label) {
-
+
simpleLog('DEBUG','function updateActiveLookups called.');
var req = getXMLHttpRequest();
req.open('GET',getTargetUrl()+'?action=updateActiveLookups&active_field='+current_fixed+'&selected_lookup='+selected_lookup, true);
@@ -127,9 +127,9 @@ function updateActiveLookups(selected_lookup, lookup_label) {
}
// send a "save" request to the backend, asking it to make the child_lookups the only items parented
-// to the selected_lookup (include field_id for selected, and fieldset).
+// to the selected_lookup (include field_id for selected, and fieldset).
function storeRelationship(selected_lookup, child_lookups) {
-
+
var formKeys = Array();
var formValues = Array();
@@ -170,7 +170,7 @@ function storeRelationship(selected_lookup, child_lookups) {
// inform the user that something has happened.
// FIXME this isn't i18n friendly.
addInformationNote(_('Dependencies saved. (at ') + new Date() + ')');
-
+
deferred.addCallback(do_updateActiveLookups);
deferred.addErrback(partial(do_handleAjaxError, 'storeRelationship'));
}
@@ -185,7 +185,7 @@ function addInformationNote(message) {
var sH = secondHeaders[0];
contentBox.insertBefore(dynamicMessage, sH);
}
-
+
var newStr = createDOM('P',null,message);
replaceChildNodes(dynamicMessage, newStr);
}
@@ -197,20 +197,20 @@ function do_updateActiveFields(req) {
var incoming_fields = req.responseXML.getElementsByTagName('active');
for (var i=0; i {i18n}To make a value in a child field available to the user when another value is
-selected in a parent field, first ensure that the parent field is being edited (it will have "save" and "done"
-as the buttons at the bottom of the column) and then select the value for the parent field. Now select the value(s) in
+ {i18n}To make a value in a child field available to the user when another value is
+selected in a parent field, first ensure that the parent field is being edited (it will have "save" and "done"
+as the buttons at the bottom of the column) and then select the value for the parent field. Now select the value(s) in
the child column(s) you wish to be available to the user when the parent field's value is selected,
and click "save". Note you that you can use Ctrl-<click> to select multiple child values
at the same time.{/i18n}